]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: decomp25 vs -fimplicit-constexpr [PR117784]
authorJason Merrill <jason@redhat.com>
Tue, 15 Jul 2025 14:46:41 +0000 (10:46 -0400)
committerJason Merrill <jason@redhat.com>
Tue, 15 Jul 2025 15:33:44 +0000 (11:33 -0400)
Avoid diagnostic changes from -fimplicit-constexpr.

PR c++/117784

gcc/testsuite/ChangeLog:

* g++.dg/cpp26/decomp25.C: Add -fno-implicit-constexpr.

gcc/testsuite/g++.dg/cpp26/decomp25.C

index 55559f0c0c22c0868dd51a6fe2d9957dc3cfeedf..f3956853042d9b97410ec55402564d3672cd30d8 100644 (file)
@@ -1,6 +1,6 @@
 // C++26 P2686R4 - constexpr structured bindings
 // { dg-do compile { target c++11 } }
-// { dg-options "" }
+// { dg-options "-fno-implicit-constexpr" }
 
 namespace std {
   template <typename T> struct tuple_size;