Tested x86_64-pc-linux-gnu, applying to trunk. -- 8< --
This test doesn't break as expected with implicit constexpr. gcc/testsuite/ChangeLog: * g++.dg/cpp1y/constexpr-diag1.C: Add -fno-implicit-constexpr. --- gcc/testsuite/g++.dg/cpp1y/constexpr-diag1.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/cpp1y/constexpr-diag1.C b/gcc/testsuite/g++.dg/cpp1y/constexpr-diag1.C index 0e2909e83ef..e12633ca085 100644 --- a/gcc/testsuite/g++.dg/cpp1y/constexpr-diag1.C +++ b/gcc/testsuite/g++.dg/cpp1y/constexpr-diag1.C @@ -1,6 +1,6 @@ // PR c++/111272 // { dg-do compile { target c++14 } } -// { dg-options "-Werror=invalid-constexpr" } +// { dg-options "-Werror=invalid-constexpr -fno-implicit-constexpr" } // { dg-prune-output "some warnings being treated as errors" } struct Jam base-commit: 084addf8a700fab9222d4127ab8524920d0ca481 -- 2.39.3