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++/18681] template friend declaration not recognized


------- 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


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