[Bug c++/52625] New: Incorrect specialization semantics of friend class template declaration
daniel.kruegler at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Mon Mar 19 20:13:00 GMT 2012
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.
More information about the Gcc-bugs
mailing list