[Bug target/124378] 23_containers/vector/cons/destructible(_debug)?_neg.cc -std=gnu++20 (test for errors, line (36|42|182))

"azoff at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124378

--- Comment #3 from Torbjorn SVENSSON <azoff at gcc dot gnu.org> ---
Ok, so another bisect done for destructible_neg.cc and the shift was introduced
back in r12-5187-g1ae8edf5f73ca5.


Testing cons/destructible_neg.cc
...
spawn -ignore SIGHUP arm-none-eabi-g++ -fmessage-length=0 -fno-show-column -g
-O2 -DLOCALEDIR="." -I/build/gcc_src/libstdc++-v3/testsuite/util
/build/gcc_src/libstdc++-v3/testsuite/23_containers/vector/cons/destructible_neg.cc
-mthumb -march=armv7ve -mtune=cortex-a7 -mfloat-abi=soft -mfpu=auto
-std=gnu++20 -fdiagnostics-plain-output -S -o destructible_neg.s
pid is 329 -329
In file included from
/build/r12-5186-gb39265d4fe13e3/arm-none-eabi/include/c++/12.0.0/vector:62,
                 from
/build/gcc_src/libstdc++-v3/testsuite/23_containers/vector/cons/destructible_neg.cc:21:
/build/r12-5186-gb39265d4fe13e3/arm-none-eabi/include/c++/12.0.0/bits/stl_construct.h:
In instantiation of 'constexpr void std::_Destroy(_ForwardIterator,
_ForwardIterator) [with _ForwardIterator = DeletedDtor*]':
/build/r12-5186-gb39265d4fe13e3/arm-none-eabi/include/c++/12.0.0/bits/alloc_traits.h:854:
  required from 'void std::_Destroy(_ForwardIterator, _ForwardIterator,
std::allocator<_T2>&) [with _ForwardIterator = DeletedDtor*; _Tp =
DeletedDtor]'
/build/r12-5186-gb39265d4fe13e3/arm-none-eabi/include/c++/12.0.0/bits/stl_vector.h:680:
  required from 'std::vector<_Tp, _Alloc>::~vector() [with _Tp = DeletedDtor;
_Alloc = std::allocator<DeletedDtor>]'
/build/gcc_src/libstdc++-v3/testsuite/23_containers/vector/cons/destructible_neg.cc:36:
  required from here
/build/r12-5186-gb39265d4fe13e3/arm-none-eabi/include/c++/12.0.0/bits/stl_construct.h:188:
error: static assertion failed: value type is destructible
/build/r12-5186-gb39265d4fe13e3/arm-none-eabi/include/c++/12.0.0/bits/stl_construct.h:188:
note: 'std::integral_constant<bool, false>::value' evaluates to false
/build/r12-5186-gb39265d4fe13e3/arm-none-eabi/include/c++/12.0.0/bits/stl_construct.h:
In instantiation of 'constexpr void std::_Destroy(_ForwardIterator,
_ForwardIterator) [with _ForwardIterator = PrivateDtor*]':
/build/r12-5186-gb39265d4fe13e3/arm-none-eabi/include/c++/12.0.0/bits/alloc_traits.h:854:
  required from 'void std::_Destroy(_ForwardIterator, _ForwardIterator,
std::allocator<_T2>&) [with _ForwardIterator = PrivateDtor*; _Tp =
PrivateDtor]'
/build/r12-5186-gb39265d4fe13e3/arm-none-eabi/include/c++/12.0.0/bits/stl_vector.h:680:
  required from 'std::vector<_Tp, _Alloc>::~vector() [with _Tp = PrivateDtor;
_Alloc = std::allocator<PrivateDtor>]'
/build/gcc_src/libstdc++-v3/testsuite/23_containers/vector/cons/destructible_neg.cc:42:
  required from here
/build/r12-5186-gb39265d4fe13e3/arm-none-eabi/include/c++/12.0.0/bits/stl_construct.h:188:
error: static assertion failed: value type is destructible
/build/r12-5186-gb39265d4fe13e3/arm-none-eabi/include/c++/12.0.0/bits/stl_construct.h:188:
note: 'std::integral_constant<bool, false>::value' evaluates to false
pid is -1
...
PASS: 23_containers/vector/cons/destructible_neg.cc  (test for errors, line 36)
PASS: 23_containers/vector/cons/destructible_neg.cc  (test for errors, line 42)
PASS: 23_containers/vector/cons/destructible_neg.cc  (test for errors, line )
PASS: 23_containers/vector/cons/destructible_neg.cc (test for excess errors)



Testing cons/destructible_neg.cc
...
spawn -ignore SIGHUP arm-none-eabi-g++ -fmessage-length=0 -fno-show-column -g
-O2 -DLOCALEDIR="." -I/build/gcc_src/libstdc++-v3/testsuite/util
/build/gcc_src/libstdc++-v3/testsuite/23_containers/vector/cons/destructible_neg.cc
-mthumb -march=armv7ve -mtune=cortex-a7 -mfloat-abi=soft -mfpu=auto
-std=gnu++20 -fdiagnostics-plain-output -S -o destructible_neg.s
pid is 329 -329
In file included from
/build/r12-5187-g1ae8edf5f73ca5/arm-none-eabi/include/c++/12.0.0/vector:62,
                 from
/build/gcc_src/libstdc++-v3/testsuite/23_containers/vector/cons/destructible_neg.cc:21:
/build/r12-5187-g1ae8edf5f73ca5/arm-none-eabi/include/c++/12.0.0/bits/stl_construct.h:
In instantiation of 'constexpr void std::_Destroy(_ForwardIterator,
_ForwardIterator) [with _ForwardIterator = DeletedDtor*]':
/build/r12-5187-g1ae8edf5f73ca5/arm-none-eabi/include/c++/12.0.0/bits/alloc_traits.h:856:
  required from 'constexpr void std::_Destroy(_ForwardIterator,
_ForwardIterator, std::allocator<_T2>&) [with _ForwardIterator = DeletedDtor*;
_Tp = DeletedDtor]'
/build/r12-5187-g1ae8edf5f73ca5/arm-none-eabi/include/c++/12.0.0/bits/stl_vector.h:727:
  required from 'constexpr std::vector<_Tp, _Alloc>::~vector() [with _Tp =
DeletedDtor; _Alloc = std::allocator<DeletedDtor>]'
/build/gcc_src/libstdc++-v3/testsuite/23_containers/vector/cons/destructible_neg.cc:37:
  required from here
/build/r12-5187-g1ae8edf5f73ca5/arm-none-eabi/include/c++/12.0.0/bits/stl_construct.h:188:
error: static assertion failed: value type is destructible
/build/r12-5187-g1ae8edf5f73ca5/arm-none-eabi/include/c++/12.0.0/bits/stl_construct.h:188:
note: 'std::integral_constant<bool, false>::value' evaluates to false
/build/r12-5187-g1ae8edf5f73ca5/arm-none-eabi/include/c++/12.0.0/bits/stl_construct.h:
In instantiation of 'constexpr void std::_Destroy(_ForwardIterator,
_ForwardIterator) [with _ForwardIterator = PrivateDtor*]':
/build/r12-5187-g1ae8edf5f73ca5/arm-none-eabi/include/c++/12.0.0/bits/alloc_traits.h:856:
  required from 'constexpr void std::_Destroy(_ForwardIterator,
_ForwardIterator, std::allocator<_T2>&) [with _ForwardIterator = PrivateDtor*;
_Tp = PrivateDtor]'
/build/r12-5187-g1ae8edf5f73ca5/arm-none-eabi/include/c++/12.0.0/bits/stl_vector.h:727:
  required from 'constexpr std::vector<_Tp, _Alloc>::~vector() [with _Tp =
PrivateDtor; _Alloc = std::allocator<PrivateDtor>]'
/build/gcc_src/libstdc++-v3/testsuite/23_containers/vector/cons/destructible_neg.cc:43:
  required from here
/build/r12-5187-g1ae8edf5f73ca5/arm-none-eabi/include/c++/12.0.0/bits/stl_construct.h:188:
error: static assertion failed: value type is destructible
/build/r12-5187-g1ae8edf5f73ca5/arm-none-eabi/include/c++/12.0.0/bits/stl_construct.h:188:
note: 'std::integral_constant<bool, false>::value' evaluates to false
pid is -1
...
FAIL: 23_containers/vector/cons/destructible_neg.cc  (test for errors, line 36)
FAIL: 23_containers/vector/cons/destructible_neg.cc  (test for errors, line 42)
PASS: 23_containers/vector/cons/destructible_neg.cc  (test for errors, line )
PASS: 23_containers/vector/cons/destructible_neg.cc (test for excess errors)


Note, both revisions generate the expected line numbers for
x86_64-pc-linux-gnu, so this is a target issue of some sort.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.