https://gcc.gnu.org/g:34262b9835323907deb653d480f3847950028e35
commit r16-3457-g34262b9835323907deb653d480f3847950028e35 Author: Jason Merrill <ja...@redhat.com> Date: Fri Aug 29 10:11:11 2025 +0200 c++: -fimplicit-constexpr testcase tweak If B::get is (implictly or explicitly) constexpr the individual b bindings have constant initialization and get optimized away, so their symbols don't appear in the assembly. gcc/testsuite/ChangeLog: * g++.dg/cpp26/decomp26.C: Add -fimplicit-constexpr. Diff: --- gcc/testsuite/g++.dg/cpp26/decomp26.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/cpp26/decomp26.C b/gcc/testsuite/g++.dg/cpp26/decomp26.C index 24865ca7e56c..7560ac37ab75 100644 --- a/gcc/testsuite/g++.dg/cpp26/decomp26.C +++ b/gcc/testsuite/g++.dg/cpp26/decomp26.C @@ -1,6 +1,6 @@ // P1061R10 - Structured Bindings can introduce a Pack // { dg-do compile { target c++11 } } -// { dg-options "" } +// { dg-options "-fno-implicit-constexpr" } // { dg-final { scan-assembler "_ZZ3fooI1AEivE1a:" } } // { dg-final { scan-assembler "_ZZ3fooI1AEivE1b:" } } // { dg-final { scan-assembler "_ZZ3fooI1AEivE1c:" } }