1 2 3 4 5 6 7 8 9 10
// PR c++/50298 // { dg-options -std=c++0x } int global_variable; template <class T> struct X { static constexpr T r = global_variable; }; X<int&> x;