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++/13935] [3.4/3.5 Regression] Template friend lookup bug


------- Additional Comments From giovannibajo at libero dot it  2004-01-30 17:58 -------
Well, when I say:

friend class B;

I'm saying that ::B is a friend of MainClass<> (and ::B is thus predeclared). 
Then, I'm defining MainClass<>::B<>, which is a totally unrelated type. I don't 
see how this could be illegal.

I think the crucial point is about this:
template < class TP2 > friend class B;

Does this refer to ::B or to MainClass<>::B<>? How is the lookup performed, 
exactly? There are a couple of DR in TC1 about name lookup issues of friend 
templates, I'll give them a deeper look.


-- 


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


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