Date
2003-10-15.00:00:00
Message id
813

Content

Proposed resolution (October 2003):

Add a bullet to the end of 6.5.5.2 [class.qual] paragraph 1:

  • the lookup for a name specified in a using-declaration (9.10 [namespace.udecl]) also finds class or enumeration names hidden within the same scope (_N4868_.6.4.10 [basic.scope.hiding]).

Change the beginning of 9.10 [namespace.udecl] paragraph 4 from

A using-declaration used as a member-declaration shall refer to a member of a base class of the class being defined, shall refer to a member of an anonymous union that is a member of a base class of the class being defined, or shall refer to an enumerator for an enumeration type that is a member of a base class of the class being defined.

to

In a using-declaration used as a member-declaration, the nested-name-specifier shall name a base class of the class being defined. Such a using-declaration introduces the set of declarations found by member name lookup (6.5.2 [class.member.lookup], 6.5.5.2 [class.qual]).