Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
pr83287-2.C
blob: 6ea65400a4205b4c473cb0b95c2408479ff9dc7d [
file
] [
log
] [
blame
]
// PR c++/83287 failed to keep lookup until instantiation time
void
foo
();
namespace
{
void
foo
();
}
template
<
class
T
>
void
bar
()
{
new
T
(
foo
);
// { dg-error "cannot resolve" }
}
void
baz
()
{
bar
<double>
();
}