c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / template / deduce6.C
blob8fee6124f5a3fd87e38b4cec559830279fe54038
1 // PR c++/90505 - mismatch in template argument deduction.
2 // { dg-do compile { target c++11 } }
4 template <typename T>
5 struct S {
6   template <typename U = int, typename V>
7   static void foo(V) { }
9   void bar () { foo<>(10); }
12 void
13 test ()
15   S<int> s;
16   s.bar ();