This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5023: [2003-01-13]Error declaring constructor of template class specialization as friend
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: <gcc-gnats at gcc dot gnu dot org>,<gcc-bugs at gcc dot gnu dot org>,<nobody at gcc dot gnu dot org>,<gcc-prs at gcc dot gnu dot org>,<jsberg at bnl dot gov>
- Date: Fri, 4 Apr 2003 19:52:01 +0200
- Subject: Re: c++/5023: [2003-01-13]Error declaring constructor of template class specialization as friend
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
r=5023
Basically, it's just this:
---------------------------
template<class C>
struct S {
S();
};
struct T {
friend S<int>::S<int>();
};
----------------------------
pr5023.cpp:7: error: no `void S<int>::S()' member function declared in class
`
S<int>'
Reconfirmed with 2.95, 3.2, and 3.3 20030401
Giovanni Bajo