blob: 8bb5e022440523b1e6afd2b03b00c8b641c38968 [file] [log] [blame]
// { dg-do run }
template <class T>
void f(T);
class C
{
template <class T>
friend void f(T)
{
C c;
c.i = 3;
}
public:
void g()
{
f(3.0);
}
int i;
};
int main()
{
f(7);
C c;
c.g();
}