summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/default12.C
blob: 3d7ba5497d086b58971a43c5a0993fb60ea720c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/65370

template <typename> class C
{
  template <typename U>
  C(const C<U>&, bool = false);
};

template<>
class C<int>
{
  template <typename U>
  C(const C<U>&, bool);
};

template <typename U> C<int>::C(const C<U>&, bool = false) { }  // { dg-error "default arguments" }