blob: d5eb7c26aedd8a00387e8bdec1732046977e9036 [file] [log] [blame]
// PR c++/30298
union A {};
struct B : A {}; // { dg-error "fails to be a struct or class type" }
struct B : A {}; // { dg-error "redefinition" }