> Actually we probably need to check > > CLASSTYPE_IMPLICIT_INSTANTIATION > > instead, so that we return false also when the friend in an explicit > specialization scope.
adding:
CLASSTYPE_IMPLICIT_INSTANTIATION (DECL_FRIEND_CONTEXT (decl))
caused no regressions so I'll submit a patch later for this.
