Title
Ambiguity of namespace-aliases
Status
nad
Section
9.8.3 [namespace.alias]
Submitter
Richard Smith

Created on 2014-07-20.00:00:00 last changed 122 months ago

Messages

Date: 2014-11-15.00:00:00

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.

Date: 2022-11-20.07:54:16

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.

History
Date User Action Args
2014-11-24 00:00:00adminsetmessages: + msg5278
2014-07-20 00:00:00admincreate