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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.ns
/
koenig5.C
blob
84af9f1edf5a8bdca6a91bcd12f39599055d4475
1
// { dg-do assemble }
2
// To find function pointers in Koenig lookup is ok as long as we only find one.
3
namespace A{
4
void foo(); // { dg-error "" }
5
struct X{};
6
void (*bar)(X*)=0;
7
}
8
using A::X;
9
10
void (*foo)(X*)=0; // { dg-error "" }
11
12
void g()
13
{
14
foo(new X); // { dg-error "" } both objects and functions found
15
bar(new X); // ok
16
}