Debian Codegraph @

gcc/testsuite/g++.dg/lookup/pr83287.C

raw
1 // PR c++/83287 failed to keep lookup until instantiation time
2
3 void foo ();
4
5 namespace {
6 void foo (int);
7 }
8
9 template <class T>
10 void bar ()
11 {
12 T (*p)() = (T (*)(void)) foo;
13 }
14
15 void
16 baz ()
17 {
18 bar<void> ();
19 }