This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21181] namespace lookup error message misleading
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Apr 2005 16:20:51 -0000
- Subject: [Bug c++/21181] namespace lookup error message misleading
- References: <20050423202713.21181.tneumann@pi3.informatik.uni-mannheim.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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