Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
two-stage2.C
blob: 67d8ab521132a4241da349c6af963195a467aaa6 [
file
] [
log
] [
blame
]
// { dg-do compile }
// PR c++/2922
char
&
f
(
char
);
template
<
class
T
>
void
g
(
T t
)
{
char
&
c1
=
f
(
1
);
// not dependent
char
&
c2
=
f
(
t
);
// dependent
}
int
&
f
(
int
);
int
main
()
{
g
(
2
);
// two f(char)
g
(
'a'
);
// two f(char)
}