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
[PATCH v2 2/3] RISC-V: setmem for RISCV with V extension
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
explicit78.C
blob
34e4c758f4528e953a7c52dc8e27e9403fdd3698
1
// { dg-do assemble }
2
3
template <int I>
4
struct A {
5
};
6
7
template <int I, int J>
8
struct B {
9
operator A<3> ();
10
operator B<3, 7> ();
11
};
12
13
14
template <int I, int J>
15
void f(B<I, J>);
16
17
template <int I>
18
void f(A<I>)
19
{
20
}
21
22
int main()
23
{
24
// Deduction fails with the first `f'. Since `3' is explicitly
25
// specified, we don't try any deduction with the second `f'. So,
26
// we call the second `f'.
27
f<3>(B<2, 7>());
28
}