Re: [PATCH] c++: Fix ICE in verify_ctor_sanity [PR98295]

2021-02-01 Thread Jason Merrill via Gcc-patches
On 2/1/21 7:48 AM, Patrick Palka wrote: On Fri, 29 Jan 2021, Jason Merrill wrote: On 1/29/21 12:28 PM, Patrick Palka wrote: In this testcase we're crash during constexpr evaluation of the ARRAY_REF b[0] as part of folding the lambda's by-copy capture of b (which is encoded as a VEC_INIT_EXPR).

Re: [PATCH] c++: Fix ICE in verify_ctor_sanity [PR98295]

2021-02-01 Thread Patrick Palka via Gcc-patches
On Fri, 29 Jan 2021, Jason Merrill wrote: > On 1/29/21 12:28 PM, Patrick Palka wrote: > > In this testcase we're crash during constexpr evaluation of the > > ARRAY_REF b[0] as part of folding the lambda's by-copy capture of b > > (which is encoded as a VEC_INIT_EXPR). Since A's default constructo

Re: [PATCH] c++: Fix ICE in verify_ctor_sanity [PR98295]

2021-01-29 Thread Jason Merrill via Gcc-patches
On 1/29/21 12:28 PM, Patrick Palka wrote: In this testcase we're crash during constexpr evaluation of the ARRAY_REF b[0] as part of folding the lambda's by-copy capture of b (which is encoded as a VEC_INIT_EXPR). Since A's default constructor is not yet defined, b's initializer is not actually c

[PATCH] c++: Fix ICE in verify_ctor_sanity [PR98295]

2021-01-29 Thread Patrick Palka via Gcc-patches
In this testcase we're crash during constexpr evaluation of the ARRAY_REF b[0] as part of folding the lambda's by-copy capture of b (which is encoded as a VEC_INIT_EXPR). Since A's default constructor is not yet defined, b's initializer is not actually constant, but because A is an empty type, eva