This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/66078] New: 20_util/specialized_algorithms/uninitialized_copy/808590.cc fails with -std=c++11
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 08 May 2015 20:15:13 +0000
- Subject: [Bug libstdc++/66078] New: 20_util/specialized_algorithms/uninitialized_copy/808590.cc fails with -std=c++11
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66078
Bug ID: 66078
Summary: 20_util/specialized_algorithms/uninitialized_copy/8085
90.cc fails with -std=c++11
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: jason at gcc dot gnu.org
CC: jwakely.gcc at gmail dot com
Target Milestone: ---
When compiled with -std=c++11, vector::_M_default_append ends up calling the
template constructor for moving from the old array to the new one. This seems
wrong as well as inconsistent with C++98; I would expect that the construction
should be from T&& or const T&, not T&.
This failed as far back as 4.7; I have not tested with earlier libraries.