diff options
author | msebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-10-14 15:37:54 +0000 |
---|---|---|
committer | msebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-10-14 15:37:54 +0000 |
commit | fbd25359ebc53967b0423987abf1a8913fe2b8ed (patch) | |
tree | 522f6e43586ee5c01728143d188d24fbc737c3fc /gcc/cp/ChangeLog | |
parent | e1a82b074074eb18d906b2d19d023eb96b95a732 (diff) | |
download | gcc-fbd25359ebc53967b0423987abf1a8913fe2b8ed.tar.gz |
PR c++/71912 - [6/7 regression] flexible array in struct in union rejected
gcc/cp/ChangeLog:
* class.c (struct flexmems_t): Add members.
(find_flexarrays): Add arguments. Correct handling of anonymous
structs.
(diagnose_flexarrays): Adjust to issue warnings in addition to errors.
(check_flexarrays): Add argument.
(diagnose_invalid_flexarray): New functions.
gcc/testsuite/ChangeLog:
* g++.dg/ext/flexary4.C: Adjust.
* g++.dg/ext/flexary5.C: Same.
* g++.dg/ext/flexary9.C: Same.
* g++.dg/ext/flexary19.C: New test.
* g++.dg/ext/flexary18.C: New test.
* g++.dg/torture/pr64312.C: Add a dg-error directive to an ill-formed
regression test.
* g++.dg/compat/struct-layout-1_generate.c (subfield): Add argument.
Avoid generating a flexible array member in an array.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@241168 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/ChangeLog')
-rw-r--r-- | gcc/cp/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 42305ceb781..c7341d179a6 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,13 @@ +2016-10-14 Martin Sebor <msebor@redhat.com> + + PR c++/71912 + * class.c (struct flexmems_t): Add members. + (find_flexarrays): Add arguments. Correct handling of anonymous + structs. + (diagnose_flexarrays): Adjust to issue warnings in addition to errors. + (check_flexarrays): Add argument. + (diagnose_invalid_flexarray): New functions. + 2016-10-04 Martin Sebor <msebor@redhat.com> PR c++/77804 |