GCC 3.3 emitted one "parse error before `{' token" error on this code, GCC 4 emits one error for *every* function defined after the error. It would be nice to only say "error: a function-definition is not allowed here before '{' token" once, and perhaps pop up to global scope so that the rest of the file is parsed in a sane way.
--- int t1() { { // unclosed brace } int t2() {} int t3() {} int t4() {} int t5() {} int t6() {} int t7() {} int t8() {} --- -Chris -- Summary: C++ error recovery regression Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sabre at nondot dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26058