This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/66078] New: 20_util/specialized_algorithms/uninitialized_copy/808590.cc fails with -std=c++11


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]