* [pushed] testsuite: constexpr-diag1.C and implicit constexpr
@ 2023-10-20 20:30 Jason Merrill
0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2023-10-20 20:30 UTC (permalink / raw)
To: gcc-patches
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-20 20:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-20 20:30 [pushed] testsuite: constexpr-diag1.C and implicit constexpr Jason Merrill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).