This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48726] New: ICE with initializer_list of unique_ptr in gcc-4.6.0
- From: "john.salmon at deshaw dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 22 Apr 2011 14:39:56 +0000
- Subject: [Bug c++/48726] New: ICE with initializer_list of unique_ptr in gcc-4.6.0
- Auto-submitted: auto-generated
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$