This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36601] New: Can't be friended by template class argument
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jun 2008 20:05:51 -0000
- Subject: [Bug c++/36601] New: Can't be friended by template class argument
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This:
template<typename F> class Foo { friend class F; };
gets you this:
~/ootbc/asm$ g++ foo.cc
foo.cc:2: error: using template type parameter ?F? after ?class?
foo.cc:2: error: friend declaration does not name a class or function
--
Summary: Can't be friended by template class argument
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36601