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