1 // PR c++/52688
2 // { dg-do link }
3 
4 template<typename T>
f()5 T 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 
main()15 int main()
16 {
17   f<double>();
18 }
19