public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49274] New: Regression: unique_ptr needs full definition of map type
@ 2011-06-03  2:39 merkert at comcast dot net
  2011-06-03  2:41 ` [Bug libstdc++/49274] " merkert at comcast dot net
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: merkert at comcast dot net @ 2011-06-03  2:39 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Regression: unique_ptr needs full definition of map
                    type
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: merkert@comcast.net


Created attachment 24420
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24420
Error message for gcc -std=c++0x -c foo.cpp

This code no longer compiles with gcc-4.7-20110528:

#include <memory>
#include <map>

using namespace std;

struct Foo {
  Foo(const Foo&) = delete;
  Foo&operator=(const Foo&) = delete;

  struct CMP;

  ~Foo();

  unique_ptr<map< int, int,CMP> > cmp;
};

The compilation is:
gcc -std=c++0x -c foo.cpp 


ray@jupiter:~/tmp> gcc --version
gcc (GCC) 4.7.0 20110528 (experimental)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


I've attached the error message.


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

end of thread, other threads:[~2011-06-03 14:37 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-03  2:39 [Bug c++/49274] New: Regression: unique_ptr needs full definition of map type merkert at comcast dot net
2011-06-03  2:41 ` [Bug libstdc++/49274] " merkert at comcast dot net
2011-06-03  8:34 ` redi at gcc dot gnu.org
2011-06-03  8:50 ` redi at gcc dot gnu.org
2011-06-03  9:32 ` paolo.carlini at oracle dot com
2011-06-03  9:37 ` paolo.carlini at oracle dot com
2011-06-03 10:19 ` redi at gcc dot gnu.org
2011-06-03 11:20 ` [Bug c++/49274] [4.6/4.7 Regression] " redi at gcc dot gnu.org
2011-06-03 11:40 ` paolo.carlini at oracle dot com
2011-06-03 12:03 ` redi at gcc dot gnu.org
2011-06-03 12:37 ` jakub at gcc dot gnu.org
2011-06-03 14:05 ` jason at gcc dot gnu.org
2011-06-03 14:09 ` jason at gcc dot gnu.org
2011-06-03 14:15 ` paolo.carlini at oracle dot com
2011-06-03 14:37 ` redi 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).