Problem with templated class.

Alexander Zvyagin zvyagin@gamspc7.ihep.su
Wed Apr 12 01:59:00 GMT 2000


Dear GCC developers,

I have problem with this code:

template <class T> class A {};
class A<int>; // this line prevents successful compilation
class B: A<int> {};

$ g++ -c f.c
f.c:3: base class `A<int>' has incomplete type

$ g++ -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)

OS: Linux Slackware 7.0

With best wishes,
Alexander Zvyagin.



More information about the Gcc-bugs mailing list