This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52625] New: Incorrect specialization semantics of friend class template declaration
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 19 Mar 2012 20:11:21 +0000
- Subject: [Bug c++/52625] New: Incorrect specialization semantics of friend class template declaration
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52625
Bug #: 52625
Summary: Incorrect specialization semantics of friend class
template declaration
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: daniel.kruegler@googlemail.com
gcc 4.8.0 20120318 (experimental) rejects the following code:
//-----
template<class>
class base {};
class derived : public base<derived>
{
template<class> friend class base; // Error
};
//-----
"error: specialization of 'base<derived>' after instantiation"
This code should be accepted, the friend declaration does not declare any
specialization.