1 2 3 4 5 6 7
/* PR c++/37647 */ /* { dg-do compile } */ struct A { A() { void A(); } /* { dg-error "return type specification for constructor invalid|non-class scope" } */ };