This is the mail archive of the gcc@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]

template bug...





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



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