Fix __gnu_cxx::_Pointer_adapter for long long arithmetic
authorJonathan Wakely <jwakely@redhat.com>
Thu, 30 Aug 2018 12:24:06 +0000 (13:24 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 30 Aug 2018 12:24:06 +0000 (13:24 +0100)
commit4a559e91b130450fa1fe3148468bfc8ef3cdf71e
treed2760242d4c298cad4f4a6154674d81bd2feba8f
parentf7e1d19d58660dee3fb0bd41496610a343f93e45
Fix __gnu_cxx::_Pointer_adapter for long long arithmetic

* include/ext/pointer.h (_Pointer_adapter): Define operators for
pointer arithmetic using long long offsets.
* testsuite/ext/ext_pointer/1.cc: Test pointer arithmetic using
long long values.

From-SVN: r263976
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/pointer.h
libstdc++-v3/testsuite/ext/ext_pointer/1.cc