summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/friend17.C
blob: 50d6024415067a181ab0a61ef9d6a38ac56d4be8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
template <class T>
struct X {
  template <class U> void operator+=(U);
  
  template <class V>
  template <class U>
  friend void X<V>::operator+=(U);
};

int main() {   
  X<int>() += 1.0;
}