gcc/testsuite/g++.dg/cpp1y/var-templ82.C
raw| 1 | // PR c++/89442 |
| 2 | // { dg-do compile { target c++14 } } |
| 3 | |
| 4 | template<class T, class U> bool vt; |
| 5 | |
| 6 | template<class T> |
| 7 | void f() { |
| 8 | bool a = vt<T>; // { dg-error "wrong number" } |
| 9 | bool b = vt<T, T>; |
| 10 | bool c = vt<T, T, T>; // { dg-error "number" } |
| 11 | bool d = vt<T, 42>; // { dg-error "mismatch" } |
| 12 | } |