[Bug c++/26058] New: C++ error recovery regression
sabre at nondot dot org
gcc-bugzilla@gcc.gnu.org
Wed Feb 1 02:13:00 GMT 2006
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
More information about the Gcc-bugs
mailing list