[Bug c++/56176] internal compiler error with call to default constructor of inner struct having a std::function member attribute initialization

benoit.bayol at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Feb 1 16:06:00 GMT 2013


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

--- Comment #1 from Benoit Bayol <benoit.bayol at gmail dot com> 2013-02-01 16:05:31 UTC ---
I have just noticed that the example code can be simpler :

struct B
{
    typedef struct
        {
            int a = 0;
    } A;
    B(A a = A()){}
};



More information about the Gcc-bugs mailing list