/* Anonymous unions don't have their own access. */
if (ANON_AGGR_TYPE_P (type))
type = type_context_for_name_lookup (type);
+ if (ANON_AGGR_TYPE_P (otype))
+ otype = type_context_for_name_lookup (otype);
/* [class.access.base]
static_assert (!is_accessible (N::rb, gctx));
static_assert (!is_accessible (N::rc, gctx));
static_assert (is_accessible (N::ra, N::ctx));
-// TODO: This case ICEs.
-//static_assert (is_accessible (N::rb, N::ctx));
+static_assert (is_accessible (N::rb, N::ctx));
static_assert (is_accessible (N::rc, N::ctx));
static_assert (is_accessible (N::ra, N::ctx.via (^^N)));
static_assert (is_accessible (N::rb, N::ctx.via (^^N)));