This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16637] New: [3.4.0/3.4.1 regression] syntax error on valid input code
- From: "rnewman at compubrite dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jul 2004 22:52:29 -0000
- Subject: [Bug c++/16637] New: [3.4.0/3.4.1 regression] syntax error on valid input code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
reduced test-case:
--- foo.cc ----
struct a {
int x;
};
struct foo {
union {
::a a;
} u;
};
int main(void)
{
foo bar;
retun 0;
}
---- end ----
3.4.0 compiles w/o error. 3.4.1 produces syntax error at declaration of "foo
bar". Workaround is to write it as: "struct foo bar;"
The "regression hunter" found the error at:
2004-05-15-3.4 (#7) and
2004-06-01-3.4 (#8)
--
Summary: [3.4.0/3.4.1 regression] syntax error on valid input
code
Product: gcc
Version: 3.4.1
Status: UNCONFIRMED
Severity: critical
Priority: P1
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rnewman at compubrite dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16637