Jonathan Wakely
eae41b4d2c
libstdc++: Prevent -Wstringop-overread warning in std::deque [PR100516]
...
The compiler warns about the loop in deque::_M_range_initialize because
it doesn't know that the number of nodes has already been correctly
sized to match the size of the input. Use __builtin_unreachable to tell
it that the loop will never be entered if the number of elements is
smaller than a single node.
libstdc++-v3/ChangeLog:
PR libstdc++/100516
* include/bits/deque.tcc (_M_range_initialize<ForwardIterator>):
Add __builtin_unreachable to loop.
* testsuite/23_containers/deque/100516.cc: New test.
2022-01-27 23:31:03 +00:00
..
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-21 16:07:34 +00:00
2022-01-03 10:42:10 +01:00
2022-01-21 16:07:34 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-21 16:07:34 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-11 13:22:35 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-21 16:07:34 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-18 20:41:46 +00:00
2022-01-03 10:42:10 +01:00
2022-01-27 23:31:03 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-06 14:56:48 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-23 22:47:00 +00:00
2022-01-05 21:46:52 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-25 21:05:16 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-10 15:38:47 +01:00
2022-01-10 15:38:47 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2021-10-21 22:24:53 +01:00
2021-10-06 20:12:01 +01:00
2022-01-21 16:07:34 +00:00
2022-01-03 10:42:10 +01:00
2022-01-21 16:07:34 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-21 16:07:34 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-27 22:24:29 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-14 11:27:50 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-05 13:47:01 +00:00
2022-01-05 13:47:00 +00:00
2022-01-03 10:42:10 +01:00
2022-01-05 13:47:00 +00:00
2022-01-03 10:42:10 +01:00
2022-01-05 13:47:01 +00:00
2022-01-03 10:42:10 +01:00
2022-01-05 13:47:00 +00:00
2022-01-06 14:56:48 +00:00
2022-01-05 13:47:01 +00:00
2022-01-03 10:42:10 +01:00
2022-01-21 13:21:27 +00:00
2022-01-25 21:05:16 +00:00
2022-01-21 16:07:34 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-21 16:07:34 +00:00
2022-01-21 16:07:34 +00:00
2022-01-14 11:27:50 +00:00
2022-01-14 10:14:25 +00:00
2022-01-05 13:47:02 +00:00
2022-01-21 16:07:34 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-14 11:27:50 +00:00
2022-01-21 16:07:34 +00:00
2022-01-03 10:42:10 +01:00
2022-01-21 16:07:34 +00:00
2022-01-14 11:27:50 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-19 00:58:25 +00:00
2022-01-03 10:42:10 +01:00
2022-01-14 11:27:50 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-19 00:58:25 +00:00
2022-01-21 16:07:34 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-14 11:27:50 +00:00
2022-01-14 11:27:50 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-21 16:07:34 +00:00
2022-01-21 16:07:34 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00