From: Jason Merrill Date: Mon, 12 Jan 2026 09:36:23 +0000 (+0800) Subject: c++: tweak testcase for --stds=impcx X-Git-Tag: basepoints/gcc-17~2080 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=f36534fe5f0290f47fae4d117ae2b85b17cc80b9;p=thirdparty%2Fgcc.git 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 --git a/gcc/testsuite/g++.dg/modules/internal-17_b.C b/gcc/testsuite/g++.dg/modules/internal-17_b.C index d6398fd68cd..ad6114bd5f7 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;