https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367 Bug 54367 depends on bug 58972, which changed state.
Bug 58972 Summary: Lambda can't access private members https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58972 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED