This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 114a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-04-18


1976. Ambiguity of namespace-aliases

Section: 9.8.3  [namespace.alias]     Status: NAD     Submitter: Richard Smith     Date: 2014-07-20

Current implementations reject an example like:

  namespace X { int n; }
  namespace A = X;
  namespace { namespace A = X; }
  int k = A::n;

This seems curious, since a similar example with using-declarations or with alias-declarations is valid.

Rationale (November, 2014):

The current wording of the Standard makes this example ambiguous, and CWG did not find the similarities mentioned compelling enough to warrant a change.