| 1 |
// { dg-do compile { target c++11_only } } |
| 2 |
|
| 3 |
// pr c++/66443 it is still ill-formed in C++ 11 for a synthesized |
| 4 |
// ctor that's deleted only because of virtual base construction |
| 5 |
|
| 6 |
static bool a_made; |
| 7 |
|
| 8 |
struct A { // { dg-message "candidate" } |
| 9 |
A( int ) { a_made = true; } // { dg-message "candidate" } |
| 10 |
}; |
| 11 |
|
| 12 |
struct B: virtual A { // { dg-message "no matching function" } |
| 13 |
int m; |
| 14 |
virtual void Frob () = 0; |
| 15 |
}; |
| 16 |
|
| 17 |
class C: public B { |
| 18 |
public: |
| 19 |
C(); |
| 20 |
virtual void Frob (); |
| 21 |
}; |
| 22 |
|
| 23 |
void C::Frob () |
| 24 |
{ |
| 25 |
} |
| 26 |
|
| 27 |
C::C () |
| 28 |
: A( 1 ) // { dg-error "deleted function" } |
| 29 |
{ } |
| 30 |
|