This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26448] unnecessary namespace-alias ambiguity
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Mar 2006 17:21:04 -0000
- Subject: [Bug c++/26448] unnecessary namespace-alias ambiguity
- References: <bug-26448-12252@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from bangerth at dealii dot org 2006-03-08 17:21 -------
(In reply to comment #6)
> I'm considering filing a defect report (for a standard clarification) to the
> commitee but I would like to make sure I'm not climbing any trees here... In
> your first reply you said "My understanding is that this code is in fact
> invalid...", which part of the C++ standard did you base this on?
I don't have the time to look that up right now, but you should look this
up in the "name lookup" section. It should say that there is an ambiguity
if a matching name is found in two namespaces. Note that a
namespace a=b;
declaration introduces a new namespace.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26448