| 1 |
// PR c++/87097 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
struct A { |
| 5 |
constexpr A() : data() {} |
| 6 |
struct X { int n; }; |
| 7 |
X data[2]; |
| 8 |
}; |
| 9 |
|
| 10 |
static_assert((A(), true), ""); |
| 11 |
static_assert(A().data[0].n == 0, ""); |
| 12 |
static_assert(A().data[1].n == 0, ""); |
| 13 |
constexpr A x; |