Sign in
gnu
/
gcc
/
14bc1c0e15633ea781d76d0ae4274b2e27d51db5
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
deduct4.C
blob: b80a932f7a4b4aeee3e997d28b3a6e68838306b9 [
file
] [
log
] [
blame
]
// 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
);
}