Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / other / ctor1.C
blob65449f4c69155a7ea02c0e4c65005139d5a87cb8
1 /* { dg-do compile } */
2 // PR C++/30303
3 // This used to ICE because we did not return NULL
4 // in grokfndecl when an error happened.
6 class A
8   int i;
9 };
11 A::A() { A(); } /* { dg-error "definition of implicitly-declared" } */