Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / other / ctor2.C
blob65bd859027e9272a9586923242a09c4a7c0d3a57
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.
7 class A
9   int i;
12 void foo()
14   A();
17 A::A() {} /* { dg-error "definition of implicitly-declared" } */