https://gcc.gnu.org/g:f36534fe5f0290f47fae4d117ae2b85b17cc80b9
commit r16-6724-gf36534fe5f0290f47fae4d117ae2b85b17cc80b9 Author: Jason Merrill <[email protected]> Date: Mon Jan 12 17:36:23 2026 +0800 c++: tweak testcase for --stds=impcx Implicit constexpr makes the use of x disappear, avoiding the exposure and thus the diagnostic. gcc/testsuite/ChangeLog: * g++.dg/modules/internal-17_b.C: Add -fno-implicit-constexpr. Diff: --- gcc/testsuite/g++.dg/modules/internal-17_b.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/modules/internal-17_b.C b/gcc/testsuite/g++.dg/modules/internal-17_b.C index d6398fd68cdc..ad6114bd5f73 100644 --- a/gcc/testsuite/g++.dg/modules/internal-17_b.C +++ b/gcc/testsuite/g++.dg/modules/internal-17_b.C @@ -1,5 +1,5 @@ // PR c++/121576 -// { dg-additional-options "-fmodules -Wno-error=expose-global-module-tu-local -Wtemplate-names-tu-local -Wno-global-module" } +// { dg-additional-options "-fmodules -Wno-error=expose-global-module-tu-local -Wtemplate-names-tu-local -Wno-global-module -fno-implicit-constexpr" } // { dg-module-cmi !X } module;
