[Bug c++/56176] New: 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:04:00 GMT 2013


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

             Bug #: 56176
           Summary: internal compiler error with call to default
                    constructor of inner struct having a std::function
                    member attribute initialization
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: benoit.bayol@gmail.com


Hello,

Here is the test code :

#include <functional>

typedef std::function<auto (int, int) -> int> fn_type;

auto f1 = [](int,int){return 0;};

struct B
{
    typedef struct
        {
            fn_type _f = f1;
    } A;
    B(A a = A()){}
};



More information about the Gcc-bugs mailing list