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: "maxim dot yegorushkin at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 May 2005 08:17:30 -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 maxim dot yegorushkin at gmail dot com 2005-05-18 08:17 -------
(In reply to comment #1)
> 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'.
Thank you for your illuminating answer.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21615