// { dg-do compile { target c++14 } } template constexpr T v = T(); template constexpr T v = T(); template struct A { static constexpr decltype (v) v = ::v; }; double d1 = v; double d2 = A::v;