[Bug c++/65157] Unable to define a static template member function of a nested class as a friend of a sibling class.

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Feb 22 20:55:00 GMT 2015


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>();
                  ^



More information about the Gcc-bugs mailing list