8sa1-gcc/gcc/testsuite/g++.dg/cpp0x/implicit15.C
Jakub Jelinek 208a532904 re PR c++/88122 (g++ ICE: internal compiler error: Segmentation fault)
PR c++/88122
	* method.c (maybe_explain_implicit_delete): If
	FUNCTION_FIRST_USER_PARMTYPE (decl) is NULL, set const_p to false
	instead of ICEing.

	* g++.dg/cpp0x/implicit15.C: New test.

From-SVN: r266360
2018-11-21 23:42:09 +01:00

12 lines
379 B
C

// PR c++/88122
// { dg-do compile { target c++11 } }
struct A {
A (...); // { dg-message "candidate" }
A (); // { dg-message "candidate" }
};
struct B : A {
using A::A; // { dg-error "is ambiguous" }
// { dg-message "is implicitly deleted because the default definition would be ill-formed" "" { target *-*-* } .-1 }
} b{3}; // { dg-error "use of deleted function" }