[Bug debug/51262] [4.7 Regression] ICE: SIGSEGV in primary_template_instantiation_p (pt.c:2874) with -flto -g
jason at redhat dot com
gcc-bugzilla@gcc.gnu.org
Fri Dec 9 03:49:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51262
--- Comment #4 from Jason Merrill <jason at redhat dot com> 2011-12-09 03:25:17 UTC ---
On 12/08/2011 11:46 AM, rguenth at gcc dot gnu.org wrote:
> Dodji, Jason, can such anonymous name types ever have TYPE_DECL_ALIAS_P
> set?
They can't, but
> - else if (CLASS_TYPE_P (t) && !TYPE_DECL_ALIAS_P (TYPE_NAME (t)))
> + else if (CLASS_TYPE_P (t)
> + && TYPE_NAME (t) && !TYPE_DECL_ALIAS_P (TYPE_NAME (t)))
> return CLASSTYPE_TEMPLATE_INSTANTIATION (t)
> && PRIMARY_TEMPLATE_P (CLASSTYPE_TI_TEMPLATE (t));
I would reverse the sense here so that the condition is satisfied by a
null TYPE_NAME, since an anonymous union is a non-alias class.
Jason
More information about the Gcc-bugs
mailing list