https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119863
Nathaniel Shead <nshead at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |nshead at gcc dot gnu.org --- Comment #2 from Nathaniel Shead <nshead at gcc dot gnu.org> --- Created attachment 61158 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61158&action=edit pr119863.patch The attached patch fixes the bug for me, but I'm not super happy with it; there might be a neater way to handle friend classes.