This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16637] New: [3.4.0/3.4.1 regression] syntax error on valid input code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]