blob: a554f935bd1de61f0c56628da3d981017a2ed352 [file] [log] [blame]
// PR c++/54998
// { dg-do compile { target c++11 } }
class Foo {
public:
private:
static const int kRows = 4;
static const int kCols = 4;
union {
float m_n[kRows][kCols];
float m_m[kRows * kCols] = {
1.0f, 0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f, 0.0f,
0.0f, 0.0f, 1.0f, 0.0f,
0.0f, 0.0f, 0.0f, 1.0f
};
};
};
Foo myFoo;