Debian Codegraph @

gcc/testsuite/g++.dg/template/deduce4.C

raw
1 // PR c++/90505 - mismatch in template argument deduction.
2 // { dg-do compile }
3
4 template <typename T>
5 struct S {
6 template <typename U, typename V>
7 static void foo(V) { }
8
9 void bar () { foo<int>(10); }
10 };
11
12 void
13 test ()
14 {
15 S<int> s;
16 s.bar ();
17 }