]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: adjust nontype-class72 for implicit constexpr
authorJason Merrill <jason@redhat.com>
Thu, 13 Feb 2025 16:34:15 +0000 (17:34 +0100)
committerJason Merrill <jason@redhat.com>
Thu, 13 Feb 2025 21:54:18 +0000 (22:54 +0100)
This test added by r15-7507 doesn't get some expected diagnostics if we
implicitly make I(E) constexpr.

gcc/testsuite/ChangeLog:

* g++.dg/cpp2a/nontype-class72.C: Disable -fimplicit-constexpr.

gcc/testsuite/g++.dg/cpp2a/nontype-class72.C

index 1c48ff57add066b67b1041dd2b1f61445473a601..c36be7a4a80dda7636ce0fc0ba7f1f8ae95a7b35 100644 (file)
@@ -1,6 +1,7 @@
 // PR c++/113800
 // P2308R1 - Template parameter initialization
 // { dg-do compile { target c++20 } }
+// { dg-additional-options "-fno-implicit-constexpr" }
 // Invalid cases.
 
 namespace std {