blob: c13b39768db87fa6a935a118d58d4720c1a927be [file] [log] [blame]
// PR c++/81013
struct A
{
virtual void foo() const;
};
union B : A // { dg-error "derived union 'B' invalid" }
{
void foo() const;
};
void bar(const B& b)
{
b.foo();
}