This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
template bug...
- To: "EGCS Mailing List" <egcs at egcs dot cygnus dot com>
- Subject: template bug...
- From: "Jody Hagins" <jody at atdesk dot com>
- Date: Fri, 25 Jun 1999 15:58:37 -0400
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