]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/template/operator10.C
Implement P0732R2, class types in non-type template parameters.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / template / operator10.C
1 // PR c++/30535
2 // { dg-prune-output "note" }
3
4 struct A {};
5
6 template<A, typename T> int operator-(A, T); // { dg-error "class type" "" { target c++17_down } }
7
8 int i = A() - 0; // { dg-error "no match" }