https://gcc.gnu.org/g:a560b5b5b508f39294989ee2559fcecdd2d8924a

commit r15-7513-ga560b5b5b508f39294989ee2559fcecdd2d8924a
Author: Jason Merrill <ja...@redhat.com>
Date:   Thu Feb 13 17:34:15 2025 +0100

    testsuite: adjust nontype-class72 for implicit constexpr
    
    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.

Diff:
---
 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 1c48ff57add0..c36be7a4a80d 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 {

Reply via email to