re PR libstdc++/58148 (Fails to insert iterator range into sequence container with...
commit32bb816a916fe6d3e4f223909708d70bf2278c8f
authorFrançois Dumont <fdumont@gcc.gnu.org>
Fri, 30 Aug 2013 20:55:37 +0000 (30 20:55 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Fri, 30 Aug 2013 20:55:37 +0000 (30 20:55 +0000)
treeabdc94081f8c6075d64ba9ed54dbdd2100f880e8
parent8915a229adfb159acfe5a41ecd11177792fbc3b1
re PR libstdc++/58148 (Fails to insert iterator range into sequence container with -D_GLIBCXX_DEBUG when conversion is needed)

2013-08-30  François Dumont  <fdumont@gcc.gnu.org>

PR libstdc++/58148
* include/debug/functions.h (__foreign_iterator_aux4): Use
sequence const_pointer as common type to compare pointers. Add a
fallback overload in case pointers cannot be cast to sequence
const_pointer.
* testsuite/23_containers/vector/modifiers/insert/58148.cc: New.

From-SVN: r202121
libstdc++-v3/ChangeLog
libstdc++-v3/include/debug/functions.h
libstdc++-v3/testsuite/23_containers/vector/modifiers/insert/58148.cc [new file with mode: 0644]