This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/49902] New: [C++0x] ICE in gimple_expand_cfg when initializer_list constructed using constructor parameters.


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
    };
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]