Re: [PATCH] c++: poor diag w/ non-constexpr dtor called from constexpr ctor

2025-03-17 Thread Jason Merrill
On 3/14/25 1:34 PM, Patrick Palka wrote: Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for stage 1? OK. -- >8 -- When diagnosing a non-constexpr constructor call during constexpr evaluation, explain_invalid_constexpr_fn was passing the genericized body to require_poten

[PATCH] c++: poor diag w/ non-constexpr dtor called from constexpr ctor

2025-03-14 Thread Patrick Palka
Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for stage 1? -- >8 -- When diagnosing a non-constexpr constructor call during constexpr evaluation, explain_invalid_constexpr_fn was passing the genericized body to require_potential_constant_expression rather than the saved non