Re: [PATCH] c++: ICE with operator new[] in constexpr [PR118775]

2025-03-04 Thread Jason Merrill
On 2/11/25 6:24 PM, Marek Polacek wrote: Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? -- >8 -- Here we ICE since r11-7740 because we no longer say that (long)&a (where a is a global var) is non_constant_p. So VERIFY_CONSTANT does not return and we crash on tree_to_uhwi. We shou

Re: [PATCH] c++: ICE with operator new[] in constexpr [PR118775]

2025-03-04 Thread Marek Polacek
Ping. On Tue, Feb 11, 2025 at 06:24:32PM -0500, Marek Polacek wrote: > Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? > > -- >8 -- > Here we ICE since r11-7740 because we no longer say that (long)&a > (where a is a global var) is non_constant_p. So VERIFY_CONSTANT > does not return

[PATCH] c++: ICE with operator new[] in constexpr [PR118775]

2025-02-11 Thread Marek Polacek
Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? -- >8 -- Here we ICE since r11-7740 because we no longer say that (long)&a (where a is a global var) is non_constant_p. So VERIFY_CONSTANT does not return and we crash on tree_to_uhwi. We should check tree_fits_uhwi_p before calling tr