struct A{ struct B{ struct D{struct E{};}; struct C:D{ E get(); }; }; }; E A::B::C::get(){return E();}; int main(){A::B::C c;c.get();return 0;}
Standard input is empty
prog.cpp:9:1: error: 'E' does not name a type E A::B::C::get(){return E();}; ^
Standard output is empty