Re: [PATCH] c++: Fix error-recovery with requires expression [PR99500]

2021-03-18 Thread Jason Merrill via Gcc-patches
On 3/9/21 10:22 PM, Marek Polacek wrote: This fixes an ICE on invalid code where one of the parameters was error_mark_node and thus resetting its DECL_CONTEXT crashed. Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? OK. Jason gcc/cp/ChangeLog: PR c++/99500 * pa

[PATCH] c++: Fix error-recovery with requires expression [PR99500]

2021-03-09 Thread Marek Polacek via Gcc-patches
This fixes an ICE on invalid code where one of the parameters was error_mark_node and thus resetting its DECL_CONTEXT crashed. Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? gcc/cp/ChangeLog: PR c++/99500 * parser.c (cp_parser_requirement_parameter_list): Handle