/* PR c++/2437 *//* { dg-do run } */// Test of two-stage name lookup.intg(double){return0;}template<classT>structX{intf(){returng(2);}// should call g(double)};inlineintg(int){return1;}intmain(){returnX<int>().f();// should call g(double), but used to call g(int)}