http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60886
Bug ID: 60886 Summary: poor parse error recovery for missing parenthesis in initializer-list Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: manu at gcc dot gnu.org class A { A(int _a, int _b) : a(_a, b(_b) {} int a, b; } manuel@gcc10:~$ clang++ bug.C bug.C:4:12: error: expected ')' int a,b; ^ bug.C:2:24: note: to match this '(' A(int _a, int _b) : a(_a, b(_b) {} ^ 1 error generated. manuel@gcc10:~$ ~/test1/208648/build/gcc/cc1plus bug.C A::A(int, int) bug.C:2:23: error: class ‘A’ does not have any field named ‘a’ A(int _a, int _b) : a(_a, b(_b) {} ^ bug.C:2:33: error: ‘b’ was not declared in this scope A(int _a, int _b) : a(_a, b(_b) {} ^ bug.C:4:11: error: expected ‘)’ at end of input int a,b; ^ bug.C:4:11: error: expected ‘{’ at end of input