From a560b5b5b508f39294989ee2559fcecdd2d8924a Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 13 Feb 2025 17:34:15 +0100 Subject: [PATCH] testsuite: adjust nontype-class72 for implicit constexpr 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/g++.dg/cpp2a/nontype-class72.C b/gcc/testsuite/g++.dg/cpp2a/nontype-class72.C index 1c48ff57add..c36be7a4a80 100644 --- a/gcc/testsuite/g++.dg/cpp2a/nontype-class72.C +++ b/gcc/testsuite/g++.dg/cpp2a/nontype-class72.C @@ -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 { -- 2.47.2