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++/21181] namespace lookup error message misleading


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-24 16:20 -------
(In reply to comment #7)
> Are you sure? None of the given PRs uses friend declarations. In my two cases I 
> only have to use friend struct ::S1 and all is fine but to find the broken 
> friend declarations is PITA. 

Yes and that is the correct way otherwise you get the wrong class declared as a friend, again this is a 
dup of bug 19403 which is fixed correctly in 4.1.0 and above in that the friend statement is no longer a 
declaration of a class but just a marking on the class if it exists in the future the class is a friend of the 
other class.

-- 


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


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