blob: 8f74675f27b7e63733c15ba1fb62c4656173d781 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// PR c++/61994
// { dg-do compile { target c++11 } }
struct A { int i,j; };
struct X {
A a = {1,1};
};
constexpr X table[1][1] = {{ {} }};
#define SA(X) static_assert(X,#X)
SA(table[0][0].a.i == 1);
|