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
MIPS32R6 and MIPS64R6 support
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
overload3.C
blob
3cca3147eecfbf20b45a7dd3cc45088ead229dc6
1
// { dg-do assemble }
2
// Bug: bar is considered to be overloaded (i.e. its
3
// IDENTIFIER_GLOBAL_VALUES are TREE_LISTs) even though it isn't,
4
// so default_conversion thinks it can't resolve the name.
5
6
void foo ();
7
void bar ();
8
9
void baz ()
10
{
11
void (*p)() = 1 ? (void (*)()) &foo : bar;
12
}