On Wed, Jan 28, 2026 at 02:21:43PM +0800, Jason Merrill wrote: > This seems to avoid that while also fixing the testcase; I haven't done any > other testing.
Bootstrapped/regtested successfully on x86_64-linux and i686-linux. LGTM. > From eb72e0b8c9d92417542e6488896f500304c55ca2 Mon Sep 17 00:00:00 2001 > From: Jason Merrill <[email protected]> > Date: Wed, 28 Jan 2026 14:17:13 +0800 > Subject: [PATCH] c++: defer DECL_ONE_ONLY vs consteval-only > To: [email protected] > > gcc/cp/ChangeLog: > > * decl.cc (maybe_commonize_var): Don't check consteval_only_p. > (make_rtl_for_nonlocal_decl): Undo make_decl_one_only for > consteval-only variables. Jakub
