summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/friend42.C
blob: 73d10df01127a82b1a2a228af4e06cc2c0eb6381 (plain)
1
2
3
4
5
6
7
8
// { dg-do compile }

template <class T> void foo (int);

template <class T>
class Q {
  friend void foo<T> (int = 3); // { dg-error "default argument" }
};