1 // PR c++/51327 2 // { dg-do compile { target c++11 } } 3 4 struct A 5 { 6 A(int); 7 }; 8 9 struct B : A {}; // { dg-message "" } 10 foo(B)11 constexpr int foo(B) { return 0; } // { dg-error "invalid type" } 12