Re: C++ PATCH for c++/80244, ICE with attribute in template alias

2017-04-17 Thread Jason Merrill
OK. On Wed, Apr 5, 2017 at 5:37 PM, Marek Polacek wrote: > We crashed on this testcase because UNDERLYING_TYPE, a C++-specific code, > got into layout_type. It wound up there via strip_typedefs -> ... -> > build_type_attribute_qual_variant and that calls type_hash_canon which > has > 7129 /*

C++ PATCH for c++/80244, ICE with attribute in template alias

2017-04-05 Thread Marek Polacek
We crashed on this testcase because UNDERLYING_TYPE, a C++-specific code, got into layout_type. It wound up there via strip_typedefs -> ... -> build_type_attribute_qual_variant and that calls type_hash_canon which has 7129 /* The TYPE_ALIGN field of a type is set by layout_type(), so we 7130