https://gcc.gnu.org/g:40e768675470b635d6ace326a3cb88dd32e19431
commit r17-6185-g40e768675470b635d6ace326a3cb88dd32e19431 Author: Jason Merrill <[email protected]> Date: Thu Nov 12 12:33:59 2026 -0500 c++: fix testcase Somehow I missed requiring constexpr support in this test. gcc/testsuite/ChangeLog: * g++.dg/contracts/cpp26/non-const1.C: Require c++14. Diff: --- gcc/testsuite/g++.dg/contracts/cpp26/non-const1.C | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/g++.dg/contracts/cpp26/non-const1.C b/gcc/testsuite/g++.dg/contracts/cpp26/non-const1.C index 7aa453227bdf..7fb7d93ddba4 100644 --- a/gcc/testsuite/g++.dg/contracts/cpp26/non-const1.C +++ b/gcc/testsuite/g++.dg/contracts/cpp26/non-const1.C @@ -1,3 +1,4 @@ +// { dg-do compile { target c++14 } } // { dg-additional-options -fcontracts } struct A {
