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]

Re: egcs-g++-971215: template specialization problem


Hello everybody, especially Mark!

Thanks for your answer, it fixed the problem I reported.
Unfortunately the reported problem was only close to the problem that's
really bothering me.

> g++ test.cc 
class X
{
  public:
    virtual void f() const = 0;
};

template <class T>
class Y: public X
{
  public:
    virtual void f() const;
};

template <class T>
void Y<T>::f() const
{
}

template <>
void Y<bool>::f() const;
> g++ test.cc
test.cc:20: prototype for `void Y<bool>::f(int) const' does 
not match any in class `X'
test.cc:4: candidate is: void X::f(int) const


Best regards, 
Dirk Herrmann



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