https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91891
Bug ID: 91891 Summary: std::function with lambda default initializer in aggregate construction causes ICE Product: gcc Version: 7.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dascandy at gmail dot com Target Milestone: --- https://godbolt.org/z/_XP2No Confirmed working on 6.x, 8.x and 9.x, but broken on all 7.x available on Godbolt. Example is mostly minimized, but not completely.