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++/65157] Unable to define a static template member function of a nested class as a friend of a sibling class.


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65157

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Clang accepts the code, EDG rejects it with:

"x.cc", line 16: error: nontype "A<T>::B::Create" is not a template
   friend void B::Create<U>();
                  ^


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