Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
other
/
ctor2.C
blob: 65bd859027e9272a9586923242a09c4a7c0d3a57 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
// PR C++/30303
// This used to ICE because we did not return NULL
// in grokfndecl when an error happened.
class
A
{
int
i
;
};
void
foo
()
{
A
();
}
A
::
A
()
{}
/* { dg-error "definition of implicitly-declared" } */