Commit 93b47944 by Paolo Carlini Committed by Paolo Carlini

re PR c++/54998 (Internal compiler error with union member initialization using…

re PR c++/54998 (Internal compiler error with union member initialization using default constructor)

2013-07-04  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/54998
	* g++.dg/cpp0x/nsdmi-list3.C: New.

From-SVN: r200667
parent 3e676928
2013-07-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/54998
* g++.dg/cpp0x/nsdmi-list3.C: New.
2013-07-03 Jakub Jelinek <jakub@redhat.com>
PR target/57777
......
// 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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment