Tested x86_64-pc-linux-gnu, applying to trunk.

-- 8< --

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;

base-commit: 3d84356bcbeefabf45420fe1299e29a079a96adb
-- 
2.52.0

Reply via email to