1// PR c++/52688 2// { dg-do link } 3 4template<typename T> 5T f() 6{ 7 static const double staticLocalVariable = 100.0; 8 struct local 9 { 10 static double f() { return staticLocalVariable; } 11 }; 12 return T(local::f()); 13} 14 15int main() 16{ 17 f<double>(); 18} 19