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

--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
```
/home/sam/git/gcc/libstdc++-v3/testsuite/25_algorithms/stable_sort/constexpr.cc:21:
error: non-constant condition for static assertion
In file included from
/tmp/bisect-gcc-bld/x86_64-pc-linux-gnu/libstdc++-v3/include/algorithm:63,
                 from
/home/sam/git/gcc/libstdc++-v3/testsuite/25_algorithms/stable_sort/constexpr.cc:3:
/home/sam/git/gcc/libstdc++-v3/testsuite/25_algorithms/stable_sort/constexpr.cc:21:
  in 'constexpr' expansion of 'test01()'
/home/sam/git/gcc/libstdc++-v3/testsuite/25_algorithms/stable_sort/constexpr.cc:17:
  in 'constexpr' expansion of 'std::stable_sort<int*>(ar.std::array<int,
12>::begin(), ar.std::array<int, 12>::end())'
/tmp/bisect-gcc-bld/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algo.h:5045:
  in 'constexpr' expansion of 'std::__stable_sort<int*,
__gnu_cxx::__ops::_Iter_less_iter>(__first, __last,
(__gnu_cxx::__ops::__iter_less_iter(), __gnu_cxx::__ops::_Iter_less_iter()))'
/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_buff
er(_ForwardIterator, size_type) [with _ForwardIterator = int*; _Tp = int;
size_type = long int]'
In file included from
/tmp/bisect-gcc-bld/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_algo.h:69:
/tmp/bisect-gcc-bld/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/stl_tempbuf.h:322:
note: 'std::_Temporary_buffer<_ForwardIterator,
_Tp>::_Temporary_buffer(_ForwardIterator, size_type) [with _ForwardIterator =
int*; _Tp = int; size_type = long int]' declared here
[...]
```

Reply via email to