This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/65157] Unable to define a static template member function of a nested class as a friend of a sibling class.
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 22 Feb 2015 20:44:41 +0000
- Subject: [Bug c++/65157] Unable to define a static template member function of a nested class as a friend of a sibling class.
- Auto-submitted: auto-generated
- References: <bug-65157-4 at http dot gcc dot gnu dot org/bugzilla/>
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>();
^