This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18681] template friend declaration not recognized
- From: "wolfgang dot roehrl at de dot gi-de dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Nov 2004 07:12:05 -0000
- Subject: [Bug c++/18681] template friend declaration not recognized
- References: <20041126135207.18681.wolfgang.roehrl@de.gi-de.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From wolfgang dot roehrl at de dot gi-de dot com 2004-11-29 07:12 -------
Subject: Antwort: template friend declaration not recognized
Hi all,
I'm responding to the "Comments From lerdsuwa at gcc dot gnu dot org
2004-11-27 16:19":
I do not think that the cited standard rule (11.4/2) matches my example
because the nested class C1<T_>::S1 uses a name of its surrounding class -
namely C1<T_>::T_PAR. For the definition of this name class C1<T_> in turn
is referring to a name of class C2<T_*> - namely C2<T_*>::T_PAR_TYPE. And
class C2<T_*> grants class C1<T_> access to its private names.
Best regards,
W. Roehrl
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18681