From: Jason Merrill Date: Thu, 13 Feb 2025 16:34:15 +0000 (+0100) Subject: testsuite: adjust nontype-class72 for implicit constexpr X-Git-Tag: basepoints/gcc-16~2040 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a560b5b5b508f39294989ee2559fcecdd2d8924a;p=thirdparty%2Fgcc.git 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. --- 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 {