1 /* PR c++/2437 */ 2 /* { dg-do run } */ 3 4 // Test of two-stage name lookup. 5 g(double)6int g(double) { return 0; } 7 8 template <class T> struct X 9 { fX10 int f() { return g(2); } // should call g(double) 11 }; 12 g(int)13inline int g(int) { return 1; } 14 main()15int main() 16 { 17 return X<int>().f(); // should call g(double), but used to call g(int) 18 } 19