https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71115
Bug ID: 71115 Summary: Missing warning: excess elements in struct initializer Product: gcc Version: 6.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dev at benjarobin dot fr Target Milestone: --- Created attachment 38487 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38487&action=edit Source test case with the command line used With GCC 6.1.1 20160501 on an Arch Linux up to date I have a regression compare to the GCC version 4.8.2 of Ubuntu 14.04 GCC "forget" to send the following warning : excess elements in struct initializer, when using NULL and stddef.h Clang 3.8.0 do not have this problem. If the stddef.h is not included and NULL is defined manually, GCC show the expected warning. The test case is attached.