gcc/testsuite/g++.dg/other/default12.C
raw| 1 | // PR c++/65370 |
| 2 | |
| 3 | template <typename> class C |
| 4 | { |
| 5 | template <typename U> |
| 6 | C(const C<U>&, bool = false); |
| 7 | }; |
| 8 | |
| 9 | template<> |
| 10 | class C<int> |
| 11 | { |
| 12 | template <typename U> |
| 13 | C(const C<U>&, bool); |
| 14 | }; |
| 15 | |
| 16 | template <typename U> C<int>::C(const C<U>&, bool = false) { } // { dg-error "default arguments" } |