Debian Codegraph @

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

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