repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
pr83287-2.C
blob
6ea65400a4205b4c473cb0b95c2408479ff9dc7d
1
// PR c++/83287 failed to keep lookup until instantiation time
2
3
void foo ();
4
5
namespace {
6
void foo ();
7
}
8
9
template <class T>
10
void
11
bar ()
12
{
13
new T (foo); // { dg-error "cannot resolve" }
14
}
15
16
void
17
baz ()
18
{
19
bar <double> ();
20
}