PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-template1.C
blobb949bd66bfce71755129467e09da3ccbbcef07d3
1 // PR c++/50248, DR 1358
2 // { dg-do compile { target c++11 } }
4 template<class Elt, unsigned max>
5 struct earray
7     Elt elts[max];
8     earray() = default;
9     template<typename... Elt2>
10     constexpr earray(Elt2&& ... e): elts(0) { }
13 struct SessionData
15     SessionData(SessionData&) = delete;
16     SessionData() = default;
19 struct MapSessionData : SessionData
21     earray<short, 11> equip_index;
24 void test()
26     MapSessionData *sd = new MapSessionData;