aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/resolve.c
diff options
context:
space:
mode:
authorMartin Sebor <msebor@gcc.gnu.org>2016-10-13 16:26:36 -0600
committerMartin Sebor <msebor@gcc.gnu.org>2016-10-13 16:26:36 -0600
commit960320472221464b48db6c2a1523b5f74b74d016 (patch)
tree3a71752f8a6dd2bdac0321e7226ba6861d5ea8cc /gcc/fortran/resolve.c
parent253abb2a156c6ea7d1631bbe9da32070fdfe901b (diff)
downloadgcc-960320472221464b48db6c2a1523b5f74b74d016.zip
gcc-960320472221464b48db6c2a1523b5f74b74d016.tar.gz
gcc-960320472221464b48db6c2a1523b5f74b74d016.tar.bz2
PR c++/71912 - [6/7 regression] flexible array in struct in union rejected
gcc/cp/ChangeLog: 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. gcc/testsuite/ChangeLog: PR c++/71912 * 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. From-SVN: r241143
Diffstat (limited to 'gcc/fortran/resolve.c')
0 files changed, 0 insertions, 0 deletions