]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: constexpr-diag1.C and implicit constexpr
authorJason Merrill <jason@redhat.com>
Fri, 20 Oct 2023 19:38:16 +0000 (15:38 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 20 Oct 2023 20:27:10 +0000 (16:27 -0400)
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

index 0e2909e83ef6c9304321ceaa5f9d9733948cb8e1..e12633ca0852b3c319bf8d524024343a408ed0da 100644 (file)
@@ -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