union preelement{ int foo; double bar; }; struct element : preelement { char thing; }; int main() { element a; a.foo; }
Standard input is empty
prog.cpp:7:29: error: base type 'preelement' fails to be a struct or class type prog.cpp: In function 'int main()': prog.cpp:12:12: error: aggregate 'element a' has incomplete type and cannot be defined
Standard output is empty