http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58148

            Bug ID: 58148
           Summary: [C++11] Fails to insert iterator range into sequence
                    container with -D_GLIBCXX_DEBUG when conversion is
                    needed
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ai.azuma at gmail dot com

Created attachment 30644
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30644&action=edit
reproducing source code and output of -v option

The following valid code fails to compile with 4.9.0 20130804 and
`-D_GLIBCXX_DEBUG':

//============================
#include <vector>

int main()
{
  std::vector<wchar_t> v;
  char c = 'a';
  v.insert(v.begin(), &c, &c); // compile error
}
//============================

The above code successfully compiles with 4.9.0 20130728 and
`-D_GLIBCXX_DEBUG'. So this seems a regression, which has been introduced
between 20130728 and 20130804.

The same problem also occurs for `std::deque'.

Reply via email to