* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-static10.C
blobe908fb3cb6b91e98364d539d7f783726b279933a
1 // PR c++/55944
2 // { dg-do compile { target c++11 } }
4 template<class T>
5 struct Test
7   constexpr Test(T val) : value(val) {}
8   static void test()
9   {
10     static constexpr Test<int> x(42); // ICE
11   }
12   T value;
15 int main()
17   static constexpr Test<int> x(42); // OK
18   Test<double>::test();