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]

compiler crash in make_implicit_typename()



hi -

For egcs 2.91.14, checked out on the afternoon of Mar. 20, on a
mips-sgi-irix6.2 platform, the following input crashes the compiler:

-- bug30.cc -------------------

template <class Key>
struct d0om_Hashmap
{
  typedef int value_type;

  struct iterator
  {
    typedef typename d0om_Hashmap<Key>::value_type value_type;
  };
};

-------------------------------


% cc1plus bug30.cc
bug30.cc:9: Internal compiler error.
bug30.cc:9: Please submit a full bug report to `egcs-bugs@cygnus.com'.


Program received signal SIGSEGV, Segmentation fault.
make_implicit_typename (context=0x1030c0d8, t=0x1030bff0)
    at ../../../../egcs/gcc/cp/decl.c:4603
4603          int n_baselinks = TREE_VEC_LENGTH (binfos);
(gdb) p binfos
$1 = (union tree_node *) 0x0


thanks,
sss


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