1 // PR c++/54998 2 // { dg-do compile { target c++11 } } 3 4 class Foo { 5 public: 6 private: 7 static const int kRows = 4; 8 static const int kCols = 4; 9 10 union { 11 float m_n[kRows][kCols]; 12 float m_m[kRows * kCols] = { 13 1.0f, 0.0f, 0.0f, 0.0f, 14 0.0f, 1.0f, 0.0f, 0.0f, 15 0.0f, 0.0f, 1.0f, 0.0f, 16 0.0f, 0.0f, 0.0f, 1.0f 17 }; 18 }; 19 }; 20 21 Foo myFoo; 22