Martin Sebor <mse...@gmail.com> writes: > The improvements to the handling of flexible array members in > C++ in GCC 6 inadvertently removed the pedantic warnings GCC > used to issue for their declarations. The attached patch > restores it.
After this patch, I get FAIL: obj-c++.dg/property/at-property-23.mm -fgnu-runtime (test for excess erro rs) on 32 and 64-bit Solaris, sparc and x86: Excess errors: /vol/gcc/src/hg/trunk/local/gcc/testsuite/obj-c++.dg/property/at-property-23.mm:16:17: error: ISO C++ forbids flexible array member 'c' [-Wpedantic] Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University