This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15821] New: Duplicate namespace alias within namespace rejected
- From: "stephan dot bergmann at sun dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jun 2004 15:00:49 -0000
- Subject: [Bug c++/15821] New: Duplicate namespace alias within namespace rejected
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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