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: unassig...@gcc.gnu.org ReportedBy: john.sal...@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. salm...@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}}; salm...@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. salm...@drdlogin0039.en.desres$