https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114769
Tamar Christina <tnfchris at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #5 from Tamar Christina <tnfchris at gcc dot gnu.org> --- (In reply to Feng Xue from comment #3) > When half_type is null, and call chain would be: > > vect_supportable_direct_optab_p (vinfo, sum_type, SAD_EXPR, NULL, ...) > -> get_vectype_for_scalar_type (vinfo, NULL) > -> get_related_vectype_for_scalar_type (vinfo, /*scalar_type= */NULL, > ...) > > if ((!INTEGRAL_TYPE_P (scalar_type) > && !POINTER_TYPE_P (scalar_type) > && !SCALAR_FLOAT_TYPE_P (scalar_type)) > > Here will be a segfault. Sure, I wasn't able to trigger that even disabling the optab. In any case this version doesn't get there anymore. So fixed, thanks for the report!