public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/58148] New: [C++11] Fails to insert iterator range into sequence container with -D_GLIBCXX_DEBUG when conversion is needed
@ 2013-08-13  9:45 ai.azuma at gmail dot com
  2013-08-13  9:52 ` [Bug libstdc++/58148] " paolo.carlini at oracle dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ai.azuma at gmail dot com @ 2013-08-13  9:45 UTC (permalink / raw)
  To: gcc-bugs

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'.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-08-30 20:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-13  9:45 [Bug libstdc++/58148] New: [C++11] Fails to insert iterator range into sequence container with -D_GLIBCXX_DEBUG when conversion is needed ai.azuma at gmail dot com
2013-08-13  9:52 ` [Bug libstdc++/58148] " paolo.carlini at oracle dot com
2013-08-25 11:15 ` [Bug libstdc++/58148] [4.9 Regression] " paolo.carlini at oracle dot com
2013-08-28  9:18 ` rguenth at gcc dot gnu.org
2013-08-30 20:55 ` fdumont at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).