Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
deduct4.C
blob: 02d6b2c3191b39d4808bc38b933cc6d7e8c89951 [
file
] [
log
] [
blame
]
// { dg-do run }
// Test that we can deduce t even though T is deduced from a later argument.
template
<
int
I
>
struct
A
{
};
template
<
class
T
,
T t
>
void
f
(
A
<t>
&,
T
)
{
}
int
main
()
{
A
<
42
>
a
;
f
(
a
,
24
);
}