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
12 lines
379 B
C
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" }
|