[Bug c++/15821] New: Duplicate namespace alias within namespace rejected
stephan dot bergmann at sun dot com
gcc-bugzilla@gcc.gnu.org
Fri Jun 4 15:00:00 GMT 2004
The code
namespace a {}
namespace b {
namespace c = a;
namespace c = a;
}
fails for 3.4.0 ("declaration of 'namespace c = a;' conflicts with previous
declaration 'namespace c = a;'"), but works for 3.3.3. The simpler code
namespace a {}
namespace c = a;
namespace c = a;
works for both 3.4.0 and 3.3.3.
--
Summary: Duplicate namespace alias within namespace rejected
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: stephan dot bergmann at sun dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15821
More information about the Gcc-bugs
mailing list