This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]