Re: [C++ RFC PATCH] Fix ICE with late attributes in templates (PR c++/83300)

2017-12-15 Thread Jason Merrill
On Fri, Dec 15, 2017 at 3:11 PM, Jakub Jelinek wrote: > On Fri, Dec 15, 2017 at 03:02:50PM -0500, Jason Merrill wrote: >> On 12/07/2017 11:45 AM, Jakub Jelinek wrote: >> > save_template_attributes ignored flags, when ATTR_FLAG_TYPE_IN_PLACE >> > wasn't set on a type, it would happily attach the at

Re: [C++ RFC PATCH] Fix ICE with late attributes in templates (PR c++/83300)

2017-12-15 Thread Jakub Jelinek
On Fri, Dec 15, 2017 at 03:02:50PM -0500, Jason Merrill wrote: > On 12/07/2017 11:45 AM, Jakub Jelinek wrote: > > save_template_attributes ignored flags, when ATTR_FLAG_TYPE_IN_PLACE > > wasn't set on a type, it would happily attach the attributes to some > > existing type (in this case to integer_

Re: [C++ RFC PATCH] Fix ICE with late attributes in templates (PR c++/83300)

2017-12-15 Thread Jason Merrill
On 12/07/2017 11:45 AM, Jakub Jelinek wrote: save_template_attributes ignored flags, when ATTR_FLAG_TYPE_IN_PLACE wasn't set on a type, it would happily attach the attributes to some existing type (in this case to integer_type_node). My first approach was to just call build_type_attribute_varian

[C++ RFC PATCH] Fix ICE with late attributes in templates (PR c++/83300)

2017-12-07 Thread Jakub Jelinek
Hi! save_template_attributes ignored flags, when ATTR_FLAG_TYPE_IN_PLACE wasn't set on a type, it would happily attach the attributes to some existing type (in this case to integer_type_node). My first approach was to just call build_type_attribute_variant, but that ICEs on g++.dg/cpp0x/alias-dec