This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r241876 - in /branches/gcc-6-branch/gcc: cp/Cha...
- From: msebor at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sat, 05 Nov 2016 20:08:25 -0000
- Subject: r241876 - in /branches/gcc-6-branch/gcc: cp/Cha...
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