[Bug c++/15075] "using namespace" fails in part

giovannibajo at libero dot it gcc-bugzilla@gcc.gnu.org
Thu Apr 22 17:37:00 GMT 2004


------- Additional Comments From giovannibajo at libero dot it  2004-04-22 17:28 -------
Andrew, your code is well-formed. In the friend declaration, the unqualified 
name "works2" is looked up and nothing is found. So a name is injected within 
the most enclosing namespace, which is Test. Basically, the friend function 
acts also as a predeclaration for Test::works2().

This is a bug, but I don't have time to confirm/regression-check it now.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15075



More information about the Gcc-bugs mailing list