bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fundamental template inheritance problem.


From: Thomas Maeder
Subject: Re: fundamental template inheritance problem.
Date: Thu, 12 Jul 2001 20:54:41 +0200

Federico David Sacerdoti wrote:
> 
> template <class T>
> class A {
> 
> };
> 
> template <class T>
> class B : public class A {

My gcc 2.95.3 says here:

derived.cpp:7: parse error before `{'
derived.cpp:7: `struct A' redeclared as different kind of symbol
derived.cpp:2: previous declaration of `template <class T> class A<T>'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]