Re: [PATCH] c++: Fix ICE-on-invalid with broken attribute [PR93684]

2020-02-11 Thread Jason Merrill
On 2/11/20 10:35 PM, Marek Polacek wrote: We crash when parsing [[a:: because we see a CPP_SCOPE and then we're trying to consume a CPP_EOF token. So peek before consuming it. Bootstrapped/regtested on x86_64-linux, ok for trunk? OK. PR c++/93684 - ICE-on-invalid with broken at

[PATCH] c++: Fix ICE-on-invalid with broken attribute [PR93684]

2020-02-11 Thread Marek Polacek
We crash when parsing [[a:: because we see a CPP_SCOPE and then we're trying to consume a CPP_EOF token. So peek before consuming it. Bootstrapped/regtested on x86_64-linux, ok for trunk? PR c++/93684 - ICE-on-invalid with broken attribute. * parser.c (cp_parser_std_attribute