This C++ program is accepted without error or warning by gcc 4.2 and mainline:
class c { void f(); }; void c::c::c::c::f() { } Is that really valid? -- Summary: g++ permits duplicate class names in definition Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ian at airs dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33659