Created on 2026-10-28.00:00:00 last changed 2 days ago
Suggested resolution:
Change in 9.9.2.1 [namespace.def.general] paragraph 6 as follows:
A using-directive (9.9.4 [namespace.udir]) that names the inline namespace is implicitly inserted into the enclosing namespace as for an unnamed namespace (9.9.2.2 [namespace.unnamed]). [ Note: Members of an inline namespace can be used in most respects as though they were members of the innermost enclosing namespace. Specifically, the inline namespace and its enclosing namespace are both added to the set of associated namespaces used in argument-dependent lookup (6.5.4 [basic.lookup.argdep]) whenever one of them is, and a using-directive (9.9.4 [namespace.udir]) that names the inline namespace is implicitly inserted into the enclosing namespace as for an unnamed namespace (9.9.2.2 [namespace.unnamed]). Furthermore, each member of the inline namespace can subsequently be partially specialized (13.7.6 [temp.spec.partial]), explicitly instantiated (13.9.3 [temp.explicit]), or explicitly specialized (13.9.4 [temp.expl.spec]) as though it were a member of the enclosing namespace. Finally, looking up a name in the enclosing namespace via explicit qualification (6.5.5.3 [namespace.qual]) will include members of the inline namespace even if there are declarations of that name in the enclosing namespace. -- end note ]
Change in 9.9.2.1 [namespace.def.general] paragraph 7 as follows:
[ Note: These properties are transitive: if a namespace N contains an inline namespace M, which in turn contains an inline namespace O, then the members of O can be used as though they were members of M or N. -- end note ] The inline namespace set of N is the transitive closure of all inline namespaces in N.
(From submission #1027.)
Subclause 9.9.2.1 [namespace.def.general] paragraph 6 should be turned into a note, for the most part.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2026-12-03 14:14:39 | admin | set | messages: + msg8727 |
| 2026-10-28 00:00:00 | admin | create | |