This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
compiler crash in make_implicit_typename()
- To: egcs-bugs at cygnus dot com
- Subject: compiler crash in make_implicit_typename()
- From: scott snyder <snyder at d0sgif dot fnal dot gov>
- Date: Sat, 21 Mar 1998 16:42:33 CST
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