public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "merkert at comcast dot net" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/49274] New: Regression: unique_ptr needs full definition of map type Date: Fri, 03 Jun 2011 02:39:00 -0000 [thread overview] Message-ID: <bug-49274-4@http.gcc.gnu.org/bugzilla/> (raw) 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.
next reply other threads:[~2011-06-03 2:39 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-06-03 2:39 merkert at comcast dot net [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-49274-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).