diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2016-08-23 11:13:26 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2016-08-23 11:13:26 +0100 |
commit | b405d54fcd60126cd14ffe71142a9066d34b009d (patch) | |
tree | 8f1e862f81e10c13ee501a67012876febfc18151 /libcpp | |
parent | 06db992005654ed7993b9f7696e2c34751f82db2 (diff) | |
download | gcc-b405d54fcd60126cd14ffe71142a9066d34b009d.zip gcc-b405d54fcd60126cd14ffe71142a9066d34b009d.tar.gz gcc-b405d54fcd60126cd14ffe71142a9066d34b009d.tar.bz2 |
Implement resolution of LWG DR 685 precisely
PR libstdc++/71771
* include/bits/stl_iterator.h
(operator-(reverse_iterator<Iter>, reverse_iterator<Iter>): Only
define for C++98 mode.
(operator-(move_iterator<Iter>, move_iterator<Iter>): Don't define.
* testsuite/24_iterators/headers/iterator/synopsis.cc: Use
-std=gnu++98.
* testsuite/24_iterators/headers/iterator/synopsis_c++11.cc: New test.
* testsuite/24_iterators/headers/iterator/synopsis_c++14.cc: New test.
* testsuite/24_iterators/headers/iterator/synopsis_c++17.cc: New test.
* testsuite/24_iterators/move_iterator/greedy_ops.cc: Don't test
difference operator.
* testsuite/24_iterators/reverse_iterator/greedy_ops.cc: Only test
difference operator for C++98.
* testsuite/24_iterators/reverse_iterator/71771.cc: New test.
From-SVN: r239691
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions