diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2013-07-04 10:25:08 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2013-07-04 10:25:08 +0000 |
commit | 93b47944fccb71577d5881bf6c0735a24f65447f (patch) | |
tree | 5b525ee1d90e4360a1204a4056a53a186cfbd0d1 | |
parent | 3e6769287412f9e8dc692324d8616b81ed256998 (diff) | |
download | gcc-93b47944fccb71577d5881bf6c0735a24f65447f.zip gcc-93b47944fccb71577d5881bf6c0735a24f65447f.tar.gz gcc-93b47944fccb71577d5881bf6c0735a24f65447f.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/nsdmi-list3.C | 21 |
2 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0a97f98..d3cf90e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/gcc/testsuite/g++.dg/cpp0x/nsdmi-list3.C b/gcc/testsuite/g++.dg/cpp0x/nsdmi-list3.C new file mode 100644 index 0000000..a554f93 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/nsdmi-list3.C @@ -0,0 +1,21 @@ +// 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; |