| 1 |
// PR c++/60574 |
| 2 |
// { dg-do compile { target c++14 } } |
| 3 |
// { dg-require-effective-target lto } |
| 4 |
// { dg-options "-flto" } |
| 5 |
|
| 6 |
struct A |
| 7 |
{ |
| 8 |
virtual auto foo() {} // { dg-error "11:virtual.*deduced" } |
| 9 |
}; |
| 10 |
|
| 11 |
struct B : A |
| 12 |
{ |
| 13 |
auto foo(); |
| 14 |
}; |
| 15 |
|
| 16 |
B b; |