Re: C++ PATCH to fix ICEs with alignas and template parameter pack (PR c++/79653)

2017-02-22 Thread Jason Merrill
OK. On Wed, Feb 22, 2017 at 10:53 AM, Marek Polacek wrote: > This patch oughta fix a couple of ice-on-invalids. > > The parser.c part: I think it makes no sense for cp_parser_std_attribute_spec > to create an attribute if something went wrong, e.g. in make_pack_expansion, > so > return error_mar

C++ PATCH to fix ICEs with alignas and template parameter pack (PR c++/79653)

2017-02-22 Thread Marek Polacek
This patch oughta fix a couple of ice-on-invalids. The parser.c part: I think it makes no sense for cp_parser_std_attribute_spec to create an attribute if something went wrong, e.g. in make_pack_expansion, so return error_mark_node to signal an issue. The pt.c part: tsubst_pack_expansion can retu