Re: [PATCH] c++: ICE on invalid with inheriting constructors [PR94751]

2021-03-25 Thread Jason Merrill via Gcc-patches
On 3/5/21 5:50 PM, Marek Polacek wrote: This is an ICE on invalid where we crash because since r269032 we keep error_mark_node around instead of using noexcept_false_spec when things go wrong; see the walk_field_subobs hunk. We crash in deduce_inheriting_ctor which calls synthesized_method_walk

[PATCH] c++: ICE on invalid with inheriting constructors [PR94751]

2021-03-05 Thread Marek Polacek via Gcc-patches
This is an ICE on invalid where we crash because since r269032 we keep error_mark_node around instead of using noexcept_false_spec when things go wrong; see the walk_field_subobs hunk. We crash in deduce_inheriting_ctor which calls synthesized_method_walk to deduce the exception-specification, but