2 // { dg-do compile { target c++11 } }
6 template<typename Type>
10 constexpr Test(const Type val) : _value(val) {}
11 constexpr Type get() const {return _value;}
14 static constexpr Test<int> x(42);
15 std::integral_constant<int, x.get()> i; // This is not working
23 static constexpr Test<int> x(42);
24 std::integral_constant<int, x.get()> i; // This is working