repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
deduce6.C
blob
8fee6124f5a3fd87e38b4cec559830279fe54038
1
// PR c++/90505 - mismatch in template argument deduction.
2
// { dg-do compile { target c++11 } }
3
4
template <typename T>
5
struct S {
6
template <typename U = int, typename V>
7
static void foo(V) { }
8
9
void bar () { foo<>(10); }
10
};
11
12
void
13
test ()
14
{
15
S<int> s;
16
s.bar ();
17
}