https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124241

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Wonder if this isn't just a checking issue.
The ICE is
  /* If is_friend is true, we should have found a befriending class.  */
  gcc_checking_assert (!is_friend (type, scope));
but is_friend is true when TYPE_P (scope) && same_type_p (type, scope) and in
that case there doesn't have to be a befriending class.
Or is accessible_p not meant to be called with FIELD_DECLs from anon union with
the parent class?

Reply via email to