public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48726] New: ICE with initializer_list of unique_ptr in gcc-4.6.0
@ 2011-04-22 14:40 john.salmon at deshaw dot com
  2011-04-22 15:57 ` [Bug c++/48726] " redi at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: john.salmon at deshaw dot com @ 2011-04-22 14:40 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE with initializer_list of unique_ptr in gcc-4.6.0
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: john.salmon@deshaw.com


The following code generates an ICE while trying to create a
std::initializer_list of unique_ptrs.  This is with
Target=x86_64-unknown-linux-gnu.

salmonj@drdlogin0039.en.desres$ cat il.cpp
#include <memory>

struct Foo{
    int i;
};
typedef std::unique_ptr<Foo> up;

std::initializer_list<up> il{up{new Foo}, up{new Foo}};

salmonj@drdlogin0039.en.desres$ desres-cleanenv -m gcc/4.6.0-23A/bin g++
-std=c++0x -Wall -c -o il.o il.cpp
il.cpp:8:55: internal compiler error: in record_reference, at cgraphbuild.c:60
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
salmonj@drdlogin0039.en.desres$


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

end of thread, other threads:[~2011-04-26 23:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-22 14:40 [Bug c++/48726] New: ICE with initializer_list of unique_ptr in gcc-4.6.0 john.salmon at deshaw dot com
2011-04-22 15:57 ` [Bug c++/48726] " redi at gcc dot gnu.org
2011-04-22 16:26 ` paolo.carlini at oracle dot com
2011-04-22 16:31 ` [Bug c++/48726] [C++0x] [4.6 Regression] ICE with initializer_list of unique_ptr paolo.carlini at oracle dot com
2011-04-26 21:59 ` jason at gcc dot gnu.org
2011-04-26 23:43 ` jason at gcc dot gnu.org
2011-04-26 23:47 ` jason 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).