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

g++-2.91.29 19980517 : I.C.E. 388 with templates and 3 classes (2 platforms)



Hi,

this is the same code as in

  http://www.cygnus.com/ml/egcs-bugs/1998-Apr/0511.html

but now the error is different.  This time i reduced the code to the
bare minimum :

template <class T>
class A
{
  void f();
};

template <class T>
class B: public A<T>
{
  void f();
};

template <class T>
class C: public B<T>
{
  void g()
  {
    f();
  }
};

% g++ -c bug10.cc
bug10.cc: In method `void C<T>::g()':
bug10.cc:18: Internal compiler error 388.
bug10.cc:18: Please submit a full bug report to `egcs-bugs@cygnus.com'.

This happens both on i686-pc-linux-gnu and sparc-sun-solaris2.5.1 :

% g++ -v
Reading specs from /udd/bonnaud/poubelle/linux-egcs/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.29/specs
gcc version egcs-2.91.29 19980517 (gcc2 ss-980502 experimental)

g++ -v
Reading specs from /udd/bonnaud/poubelle/sparc-egcs/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.29/specs
gcc version egcs-2.91.29 19980517 (gcc2 ss-980502 experimental)

-- 
Laurent.


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