| 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. |
| 5 |
|
| 6 |
|
| 7 |
class A |
| 8 |
{ |
| 9 |
int i; |
| 10 |
}; |
| 11 |
|
| 12 |
void foo() |
| 13 |
{ |
| 14 |
A(); |
| 15 |
} |
| 16 |
|
| 17 |
A::A() {} /* { dg-error "definition of implicitly-declared" } */ |