Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/overload3.C

raw
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 }