The following demonstrates a (minor severity) gcc-4.4-20080829 ICE on error recovery with invalid code. No ICE seen in gcc 4.3.1 or prior.
$ cat /tmp/bogus.cc struct Foo { // class Bar; template <class> int f(Bar); }; $ ./gcc/xgcc --version xgcc (GCC) 4.4.0 20080829 (experimental) ... $ ./gcc/xgcc -Bgcc -c -o /dev/null /tmp/bogus.cc /tmp/bogus.cc:3: error: 'Bar' was not declared in this scope /tmp/bogus.cc:3: internal compiler error: tree check: expected var_decl, have field_decl in cp_finish_decl, at cp/decl.c:5461 ... -- Summary: internal compiler error: tree check: expected var_decl, have field_decl in cp_finish_decl, at cp/decl.c:5461 Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: simon_baldwin at yahoo dot com GCC target triplet: i386-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37348