Debian Codegraph @

gcc/testsuite/g++.dg/diagnostic/pr71075.C

raw
1 // PR c++/71075
2
3 template<typename T, int I> struct A {};
4 template<typename T> void foo(A<T,1>) {}
5 int main() {
6 foo(A<int,2>()); // { dg-error "no matching" }
7 // { dg-message "template argument .2. does not match .1." "" { target *-*-* } .-1 }
8 }