On 20/03/14 20:29 +, Jonathan Wakely wrote:
Everything passes for "make check check-debug", so I plan to commit it
tomorrow, unless anyone points out a problem.
Committed to trunk.
PR libstdc++/60587
* include/debug/functions.h (_Is_contiguous_sequenc
fb7a90
Author: Jonathan Wakely
Date: Thu Mar 20 19:23:23 2014 +0000
PR libstdc++/60587
* include/debug/functions.h (_Is_contiguous_sequence): Define.
(__foreign_iterator): Accept additional iterator. Do not dispatch on
iterator category.
(__foreign
Hi
> On 19/mar/2014, at 23:28, Jonathan Wakely wrote:
>
>> On 19/03/14 21:39 +, Jonathan Wakely wrote:
>> I think the safe thing to do is (as I suggested at the time) to have a
>> trait saying which iterator types refer to contiguous memory. Our
>> debug mode only supports our own containers
On 19/03/14 21:39 +, Jonathan Wakely wrote:
I think the safe thing to do is (as I suggested at the time) to have a
trait saying which iterator types refer to contiguous memory. Our
debug mode only supports our own containers, so the ones which are
contiguous are known. For 4.9.0 I think the
I'm debugging http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60587 and
have found a number of problems.
Firstly, the bug report is correct, this overload dereferences the
__other argument without checking if that is OK:
template
inline bool
__foreign_iterator_aux3(const _Safe_iterator<_It