This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7638: [2003-01-28] inline friend in template class produces strange error msg
- From: reichelt at igpm dot rwth-aachen dot de
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, tkarkanis at aw dot sgi dot com
- Date: 6 May 2003 16:49:23 -0000
- Subject: Re: c++/7638: [2003-01-28] inline friend in template class produces strange error msg
- Reply-to: reichelt at igpm dot rwth-aachen dot de, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, tkarkanis at aw dot sgi dot com, gcc-gnats at gcc dot gnu dot org
Synopsis: [2003-01-28] inline friend in template class produces strange error msg
State-Changed-From-To: analyzed->closed
State-Changed-By: reichelt
State-Changed-When: Tue May 6 16:49:23 2003
State-Changed-Why:
Here's a shorter testcase:
----------------------------snip here---------------------------
template <typename> struct A
{
friend void foo () {}
void bar(A);
};
template <typename T> void A<T>::bar (A) {}
----------------------------snip here---------------------------
The bug was introduced in gcc 3.1.
Fortunately it has been fixed in gcc 3.2.3, on the 3.3 branch and mainline.
Regards,
Volker
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7638