c++/8932: g++ 3.2 error parsing a scoped friend declaration
bangerth@dealii.org
bangerth@dealii.org
Fri Dec 13 12:52:00 GMT 2002
Synopsis: g++ 3.2 error parsing a scoped friend declaration
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Fri Dec 13 12:52:01 2002
State-Changed-Why:
Your code is ill-formed: you can't specify just one instance
of a template as a friend, you have to specify all of them.
The syntax for this would be
template <typename Y> friend class ::A;
which is accepted by all compilers since 2.95.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8932
More information about the Gcc-bugs
mailing list