http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57752
Bug ID: 57752 Summary: during the lookup for a base class name, non-type names should be ignored Product: gcc Version: 4.7.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vanyacpp at gmail dot com [class.derived]p2 says: "During the lookup for a base class name, non-type names are ignored." So gcc should compile this program: struct x {}; namespace { namespace x { struct y : x {}; } }