diff options
author | Patrick Palka <ppalka@redhat.com> | 2020-04-28 16:34:24 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2020-04-28 16:43:23 -0400 |
commit | 19667c82e479dc2bf8351588ed57aff90220b748 (patch) | |
tree | 68faf8abe56e6d001a1620a0dd8a9a43a7685b6a /gcc/tree-ssa-loop-im.c | |
parent | 69bc8815740de46869b45403b3b583e1e2c0e442 (diff) | |
download | gcc-19667c82e479dc2bf8351588ed57aff90220b748.zip gcc-19667c82e479dc2bf8351588ed57aff90220b748.tar.gz gcc-19667c82e479dc2bf8351588ed57aff90220b748.tar.bz2 |
libstdc++: Fix subrange::advance and subrange::prev (LWG 3433)
This implements the proposed resolution of LWG 3433, which fixes
subrange::advance when called with a negative argument.
libstdc++-v3/ChangeLog:
LWG 3433 subrange::advance(n) has UB when n < 0
* include/std/ranges (subrange::prev): Fix typo.
(subrange::advance): Handle a negative argument as per the proposed
resolution of LWG 3433.
* testsuite/std/ranges/subrange/lwg3433.cc: New test.
Diffstat (limited to 'gcc/tree-ssa-loop-im.c')
0 files changed, 0 insertions, 0 deletions