This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/21615] Argument-dependent name lookup associated namespace search bug


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]