Path: utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!mips!bridge2!jarthur!uci-ics!gateway From: rfg@paris.ics.uci.edu (Ron Guilmette) Newsgroups: comp.lang.c++ Subject: cfront 2.0 bug 900206.01 Message-ID: <25D0C238.2027@paris.ics.uci.edu> Date: 8 Feb 90 00:50:01 GMT Organization: UC Irvine Department of ICS Lines: 39 // Cfront 2.0 but 900206.01 // The following program gets an error on the first declaration of union u2. // This error seems totally random. Commenting out almost any line in this // program makes the error go away. // This same error occurs on two different types of host systems (with two // different CPU types) so it seems to be a generalize bug in cfront 2.0. union u1 { int u1_member1; }; void f2 () { { struct s1 { int s1_member1; } s1_object; struct s2 { int s2_member1; } s2_object; struct s3 { int s3_member1; } s3_object; } { struct s1 { int s1_member1; } s1_object; struct s2 { int s2_member1; } s2_object; struct s3 { int s3_member1; } s3_object; } } void f3 () { { union u1 { int u1_member1; } u1_object; union u2 { int u2_member1; } u2_object; union u3 { int u3_member1; } u3_object; } { union u1 { int u1_member1; } u1_object; union u2 { int u2_member1; } u2_object; union u3 { int u3_member1; } u3_object; } }