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 bar()11 bar () 12 { 13 new T (foo); // { dg-error "cannot resolve" } 14 } 15 16 void baz()17 baz () 18 { 19 bar <double> (); 20 } 21