blob: 2d7b97da13851ab8bbcc47e75f6c8288f54db7a8 [file] [log] [blame]
// PR c++/52688
// { dg-do link }
template<typename T>
T f()
{
static const double staticLocalVariable = 100.0;
struct local
{
static double f() { return staticLocalVariable; }
};
return T(local::f());
}
int main()
{
f<double>();
}