Re: [PATCH] c++: Error recovery with errenous DECL_INITIAL [PR94475]

2020-04-16 Thread Patrick Palka via Gcc-patches
On Wed, 15 Apr 2020, Jason Merrill wrote: > On 4/15/20 4:43 PM, Patrick Palka wrote: > > Oops, consider the typo in the subject line fixed. Also ... > > > > On Wed, 15 Apr 2020, Patrick Palka wrote: > > > > > Here we're ICE'ing in do_narrow during error-recovery, because ocp_convert > > > retur

Re: [PATCH] c++: Error recovery with errenous DECL_INITIAL [PR94475]

2020-04-15 Thread Jason Merrill via Gcc-patches
On 4/15/20 4:43 PM, Patrick Palka wrote: Oops, consider the typo in the subject line fixed. Also ... On Wed, 15 Apr 2020, Patrick Palka wrote: Here we're ICE'ing in do_narrow during error-recovery, because ocp_convert returns error_mark_node after it attempts to reduce a const decl to its err

Re: [PATCH] c++: Error recovery with errenous DECL_INITIAL [PR94475]

2020-04-15 Thread Patrick Palka via Gcc-patches
Oops, consider the typo in the subject line fixed. Also ... On Wed, 15 Apr 2020, Patrick Palka wrote: > Here we're ICE'ing in do_narrow during error-recovery, because ocp_convert > returns error_mark_node after it attempts to reduce a const decl to its > erroneous DECL_INITIAL via scalar_constan

[PATCH] c++: Error recovery with errenous DECL_INITIAL [PR94475]

2020-04-15 Thread Patrick Palka via Gcc-patches
Here we're ICE'ing in do_narrow during error-recovery, because ocp_convert returns error_mark_node after it attempts to reduce a const decl to its erroneous DECL_INITIAL via scalar_constant_value, and we later pass this error_mark_node to fold_build2 which isn't prepared to handle error_mark_nodes.