Tested x86_64-pc-linux-gnu, applying to trunk. -- 8< --
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 { base-commit: cdb4d27a4c2786cf1b1b0eb1872eac6a5f931578 -- 2.48.1