This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21615] Argument-dependent name lookup associated namespace search bug
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 May 2005 16:37:29 -0000
- Subject: [Bug c++/21615] Argument-dependent name lookup associated namespace search bug
- References: <20050517080019.21615.maxim.yegorushkin@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2005-05-17 16:37 -------
All gcc versions I have take the template in namespace odd, and so does
icc in strict mode. I see nothing in 3.4.2 that should prevent this
from happening. What is relevant here is that the using declaration inside
the function introduces a name into the innermost namespace, thus preventing
name lookup from even looking outside the function. If you don't want to
have this happening, then you need to put the using declaration into the
same scope as the declaration of the other function 'f'.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21615