The code: class A { A ( int n=0 int n ); };
compiles in G++-3.4, but shouldn't, as I understand it. -- Summary: Accepting invalid code with weird default parameter trailer. Product: gcc Version: 3.4.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mattyt-bugzilla at tpg dot com dot au CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14361