| 1 |
// { dg-do compile } |
| 2 |
// Origin: Giovanni Bajo <giovannibajo at gcc dot gnu dot org> |
| 3 |
// DR85: Redeclaration of member class |
| 4 |
|
| 5 |
struct Base { |
| 6 |
struct Data {}; |
| 7 |
struct Data; // { dg-error "" "redeclaration of nested class is invalid" { xfail *-*-* } } |
| 8 |
}; |