blob: b949bd66bfce71755129467e09da3ccbbcef07d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// PR c++/50248, DR 1358
// { dg-do compile { target c++11 } }
template<class Elt, unsigned max>
struct earray
{
Elt elts[max];
earray() = default;
template<typename... Elt2>
constexpr earray(Elt2&& ... e): elts(0) { }
};
struct SessionData
{
SessionData(SessionData&) = delete;
SessionData() = default;
};
struct MapSessionData : SessionData
{
earray<short, 11> equip_index;
};
void test()
{
MapSessionData *sd = new MapSessionData;
}
|