Created on 2014-03-04.00:00:00 last changed 49 months ago
[Moved to DR at the November, 2014 meeting.]
Proposed resolution (October, 2014):
Change the grammar in 9.9 [namespace.udecl] paragraph 1 as follows:
Change 22.214.171.124 [namespace.qual] paragraph 1 as follows:
If the nested-name-specifier of a qualified-id nominates a namespace , the name specified after the nested-name-specifier is looked up in the scope of the namespace.
If a qualified-id starts with ::, the name after the :: is looked up in the global namespace. In either case, thenames in a template-argument of a template-id are looked up in the context in which the entire postfix-expression occurs.
Change _N4567_.5.1.1 [expr.prim.general] paragraph 10 as follows:
A ::, or anested-name-specifier that names a namespace (9.8 [basic.namespace]), in either casefollowed by the name of a member of that namespace (or the name of a member of a namespace made visible by a using-directive) is a qualified-id; 126.96.36.199 [namespace.qual] describes name lookup for namespace members that appear in qualified-ids. The result is...
Change 9.9 [namespace.udecl] paragraph 9 as follows:
Members declared by a using-declaration can be referred to by explicit qualification just like other member names (188.8.131.52 [namespace.qual]).
In a using-declaration, a prefix :: refers to the global namespace.[Example:
Issue 1411 added :: as a production for nested-name-specifier. However, the grammar for using-declarations should have been updated but was overlooked:
In addition, there is some verbiage in 184.108.40.206 [namespace.qual] paragraph 1 and 9.9 [namespace.udecl] paragraph 9 that should probably be revised.
|2017-02-06 00:00:00||admin||set||status: drwp -> cd4|
|2015-05-25 00:00:00||admin||set||status: dr -> drwp|
|2015-04-13 00:00:00||admin||set||messages: + msg5371|
|2014-11-24 00:00:00||admin||set||status: tentatively ready -> dr|
|2014-10-13 00:00:00||admin||set||messages: + msg5138|
|2014-10-13 00:00:00||admin||set||status: drafting -> tentatively ready|
|2014-07-07 00:00:00||admin||set||status: open -> drafting|