From f36534fe5f0290f47fae4d117ae2b85b17cc80b9 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 12 Jan 2026 17:36:23 +0800 Subject: [PATCH] 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. --- 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 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;