https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367 Bug 54367 depends on bug 61148, which changed state.
Bug 61148 Summary: Cannot access protected members from a lambda capturing this https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61148 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED