[Bug c++/49902] New: [C++0x] ICE in gimple_expand_cfg when initializer_list constructed using constructor parameters.
fuchsia.groan at virgin dot net
gcc-bugzilla@gcc.gnu.org
Fri Jul 29 13:35:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49902
Summary: [C++0x] ICE in gimple_expand_cfg when initializer_list
constructed using constructor parameters.
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: fuchsia.groan@virgin.net
/*
compiling this with
g++ --std=c++0x -c initializer_list.cpp
produces
initializer_list.cpp: In constructor 'T::T(bool)':
initializer_list.cpp:20:1: internal compiler error: in gimple_expand_cfg, at
cfgexpand.c:4058
on the equation gcc 4.6 port
[http://www.equation.com/servlet/equation.cmd?fa=fortran]
*/
#include <initializer_list>
struct T
{
T( bool );
};
T::T( bool b )
{
std::initializer_list<int> a
{
b ? 4 : 5
};
}
More information about the Gcc-bugs
mailing list