------- Comment #3 from dkwan at transmeta dot com 2008-01-19 03:33 ------- cc1plus SEG faults because the hash table local_specializations is NULL. There are calls to retrieve_local_specialization in pt.c. All but one, which caused this ICE, are protected by a NULL test. I have a sandbox with a trivial fix of checking local_specializations before call retrieve_local_specialization. It bootstrapped on i686-unknown-linux-gnu and I am now waiting for the regression tests finish. If everything looks fine, I will send that out to gcc-patches tonight or tomorrow the latest.
(In reply to comment #2) > Looks related to PR34573. > > Backtrace: > > #0 0x00000000010bacb1 in htab_find_with_hash (htab=0x0, > element=0x2b899b95a300, hash=863155296) > at /space/rguenther/src/svn/trunk/libiberty/hashtab.c:566 > #1 0x000000000047b935 in retrieve_local_specialization (tmpl=0x2b899b95a300) > at /space/rguenther/src/svn/trunk/gcc/cp/pt.c:980 > #2 0x00000000004bd664 in tsubst (t=0x2b899b95a3c0, args=0x2b899b95d8a0, > complain=tf_none, in_decl=0x0) > at /space/rguenther/src/svn/trunk/gcc/cp/pt.c:8859 > #3 0x00000000004bd7a4 in tsubst (t=0x2b899b95a480, args=0x2b899b95d8a0, > complain=tf_none, in_decl=0x0) > at /space/rguenther/src/svn/trunk/gcc/cp/pt.c:8879 > #4 0x00000000004bd7a4 in tsubst (t=0x2b899b95a840, args=0x2b899b95d8a0, > complain=tf_none, in_decl=0x0) > at /space/rguenther/src/svn/trunk/gcc/cp/pt.c:8879 > ... > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34846