[Bug c++/21615] Argument-dependent name lookup associated namespace search bug
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Tue May 17 16:38:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list