This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/50119] [C++0x] copy_n advances InputIterator one more time than necessary
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Aug 2011 16:32:31 +0000
- Subject: [Bug libstdc++/50119] [C++0x] copy_n advances InputIterator one more time than necessary
- Auto-submitted: auto-generated
- References: <bug-50119-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50119
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-08-18 16:32:31 UTC ---
Author: paolo
Date: Thu Aug 18 16:32:23 2011
New Revision: 177871
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177871
Log:
2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/50119
* include/bits/stl_algo.h (__copy_n(_InputIterator, _Size,
_OutputIterator, input_iterator_tag)): Fix.
* testsuite/25_algorithms/copy_n/50119.cc: New.
Added:
trunk/libstdc++-v3/testsuite/25_algorithms/copy_n/50119.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/stl_algo.h