Fix "unsupported friend" diagnostic to also appear for friend functions with dependent scopes.