This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]