template bug...
Jody Hagins
jody@atdesk.com
Fri Jun 25 12:59:00 GMT 1999
rome.atdesk.com:jody> g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
On the following code...
class Bar { };
class It { };
class Foo_Bar
{
private:
template <class T> class Foo { };
template <> Foo<Bar> foo_bar_;
template <> Foo<It> foo_it_;
};
Yields the following...
rome.atdesk.com:jody> g++ -c a.cpp
a.cpp:7: invalid member template declaration `foo_bar_'
a.cpp:8: invalid member template declaration `foo_it_'
../../gcc/tree.c:1955: Internal compiler error in function chainon
More information about the Gcc
mailing list