This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8932: g++ 3.2 error parsing a scoped friend declaration
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, sebor at roguewave dot com
- Date: 13 Dec 2002 20:52:01 -0000
- Subject: Re: c++/8932: g++ 3.2 error parsing a scoped friend declaration
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, sebor at roguewave dot com, gcc-gnats at gcc dot gnu dot org
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