Re: [C++ PATCH] Fix error-recovery with constexpr dtor (PR c++/92414)

2019-11-19 Thread Jason Merrill
On 11/18/19 11:22 PM, Jakub Jelinek wrote: On Mon, Nov 18, 2019 at 02:38:51PM -0500, Jason Merrill wrote: On 11/8/19 9:14 AM, Jakub Jelinek wrote: Hi! We ICE on the following testcase, because DECL_INITIAL (decl) is error_mark_node due to previously reported error and cxx_eval_outermost_consta

Re: [C++ PATCH] Fix error-recovery with constexpr dtor (PR c++/92414)

2019-11-18 Thread Jakub Jelinek
On Mon, Nov 18, 2019 at 02:38:51PM -0500, Jason Merrill wrote: > On 11/8/19 9:14 AM, Jakub Jelinek wrote: > > Hi! > > > > We ICE on the following testcase, because DECL_INITIAL (decl) is > > error_mark_node due to previously reported error and > > cxx_eval_outermost_constant_expr is unhappy if ctx

Re: [C++ PATCH] Fix error-recovery with constexpr dtor (PR c++/92414)

2019-11-18 Thread Jason Merrill
On 11/8/19 9:14 AM, Jakub Jelinek wrote: Hi! We ICE on the following testcase, because DECL_INITIAL (decl) is error_mark_node due to previously reported error and cxx_eval_outermost_constant_expr is unhappy if ctx.ctor is not a CONSTRUCTOR, but error_mark_node. If the initializer is invalid, it