https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78039
--- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> --- Author: msebor Date: Sat Nov 5 20:08:25 2016 New Revision: 241876 URL: https://gcc.gnu.org/viewcvs?rev=241876&root=gcc&view=rev Log: PR c++/78039 - fails to compile glibc tests gcc/cp/ChangeLog: * class.c (diagnose_flexarrays): Avoid rejecting an invalid flexible array member with a hard error when it is followed by another member in a different struct, and instead issue just a pedantic warning. gcc/testsuite/ChangeLog: * g++.dg/ext/flexary18.C: New test. * g++.dg/ext/flexary19.C: New test. Added: branches/gcc-6-branch/gcc/testsuite/g++.dg/ext/flexary18.C branches/gcc-6-branch/gcc/testsuite/g++.dg/ext/flexary19.C Modified: branches/gcc-6-branch/gcc/cp/ChangeLog branches/gcc-6-branch/gcc/cp/class.c branches/gcc-6-branch/gcc/testsuite/ChangeLog