The following code violates clause 4 of 3.4.5 class C {};
void f () { C o; class C {}; o.C::~C (); } -- Summary: class member access using a qualified-id fails to check for match of classes Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: accepts-invalid Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: amylaar at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28985