https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102995
--- Comment #4 from Jose Dapena Paz <jdapena at igalia dot com> --- Definitely the proposed approach fixes the issue in GCC. And it looks to me it makes more sense (it looks to me the code in Chromium is reversing the expected meaning of friend there). I will propose a fix to Chromium to use same approach (just verified it works). Before closing this ticket... Could anybody with more knowledge of the applying rules in standard give me the reference? It would improve the commit to actually refer to the standard reason why we will replace the code.