https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119488

            Bug ID: 119488
           Summary: 25_algorithms/stable_sort/constexpr.cc test fails
                    (error: non-constant condition for static assertion)
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: testsuite-fail
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

At r15-8945-gb70bd691cfd77b, I see:
```
FAIL: 25_algorithms/stable_sort/constexpr.cc  -std=gnu++26 (test for excess
errors)
Excess errors:
/home/sam/git/gcc/libstdc++-v3/testsuite/25_algorithms/stable_sort/constexpr.cc:21:
error: non-constant condition for static assertion
/tmp/bisect-gcc-bld/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algo.h:4999:
error: call to non-'constexpr' function
'std::_Temporary_buffer<_ForwardIterator,
_Tp>::_Temporary_buffer(_ForwardIterator, size_type) [with _ForwardIterator =
int*; _Tp = int; size_type = long int]'
/home/sam/git/gcc/libstdc++-v3/testsuite/25_algorithms/stable_sort/constexpr.cc:31:
error: non-constant condition for static assertion
/tmp/bisect-gcc-bld/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algo.h:4999:
error: call to non-'constexpr' function
'std::_Temporary_buffer<_ForwardIterator,
_Tp>::_Temporary_buffer(_ForwardIterator, size_type) [with _ForwardIterator =
int*; _Tp = int; size_type = long int]'
/home/sam/git/gcc/libstdc++-v3/testsuite/25_algorithms/stable_sort/constexpr.cc:41:
error: non-constant condition for static assertion
/tmp/bisect-gcc-bld/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algo.h:4999:
error: call to non-'constexpr' function
'std::_Temporary_buffer<_ForwardIterator,
_Tp>::_Temporary_buffer(_ForwardIterator, size_type) [with _ForwardIterator =
int*; _Tp = int; size_type = long int]'
/home/sam/git/gcc/libstdc++-v3/testsuite/25_algorithms/stable_sort/constexpr.cc:51:
error: non-constant condition for static assertion
/tmp/bisect-gcc-bld/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algo.h:4999:
error: call to non-'constexpr' function
'std::_Temporary_buffer<_ForwardIterator,
_Tp>::_Temporary_buffer(_ForwardIterator, size_type) [with _ForwardIterator =
int*; _Tp = int; size_type = long int]'
/home/sam/git/gcc/libstdc++-v3/testsuite/25_algorithms/stable_sort/constexpr.cc:62:
error: non-constant condition for static assertion
/tmp/bisect-gcc-bld/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algo.h:4999:
error: call to non-'constexpr' function
'std::_Temporary_buffer<_ForwardIterator,
_Tp>::_Temporary_buffer(_ForwardIterator, size_type) [with _ForwardIterator =
int*; _Tp = int; size_type = long int]'
```

Reply via email to