summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/friend23.C
blob: 93ce72e3025dd22bc4abd28a546fc39cc2d42674 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }

template <class T = int> // { dg-message "note: original definition" }
struct S
{ 
  template <class U = int>
  friend class S; // { dg-error "redefinition of default argument" }
};

template struct S<int>;