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: [email protected]
ReportedBy: [email protected]
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()){}
};