This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 112e. See for the official list.


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.