Sign in
gnu
/
gcc
/
refs/heads/devel/c++-contracts
/
.
/
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)
}