* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-template4.C
blob7adcae83abd4db0d8c4304f208e11c04631823af
1 // PR c++/55931
2 // { dg-do compile { target c++11 } }
4 #include <type_traits>
6 template<typename Type>
7 class Test
9     public:
10         constexpr Test(const Type val) : _value(val) {}
11         constexpr Type get() const {return _value;}
12         static void test()
13         {
14             static constexpr Test<int> x(42);
15             std::integral_constant<int, x.get()> i; // This is not working
16         }
17     protected:
18         Type _value;
21 int main()
23     static constexpr Test<int> x(42);
24     std::integral_constant<int, x.get()> i; // This is working
25     Test<double>::test();