Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
explicit-args4.C
blob: c64a085edb64de2d015cbd37e627840015a2a321 [
file
] [
log
] [
blame
]
// PR c++/48883
// { dg-do link }
template
<
typename
T
>
T myMax
(
T a
,
T b
)
{
if
(
a
<
b
)
return
a
;
return
b
;
}
int
main
()
{
bool
even
=
true
;
int
(*
fp
)(
int
,
int
);
fp
=
even
?
myMax
<int>
:
myMax
<int>
;
/* yields link error */
}