This is the mail archive of the gcc-bugs@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]

[Bug c/71115] [5/6 Regression] Missing warning: excess elements in struct initializer


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71115

--- Comment #14 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Sat Nov  5 23:57:13 2016
New Revision: 241878

URL: https://gcc.gnu.org/viewcvs?rev=241878&root=gcc&view=rev
Log:
PR c/71115 - [5/6 Regression] Missing warning: excess elements in struct
initializer
Backport from trunk.

gcc/c/ChangeLog:
        * c-typeck.c (error_init): Use
        expansion_point_location_if_in_system_header.
        (warning_init): Same.

gcc/testsuite/ChangeLog:
        * gcc.dg/init-excess-2.c: New test.
        * gcc.dg/Woverride-init-1.c: Adjust.
        * gcc.dg/Woverride-init-2.c: Same.

Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.dg/init-excess-2.c
Modified:
    branches/gcc-5-branch/gcc/c/ChangeLog
    branches/gcc-5-branch/gcc/c/c-typeck.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
    branches/gcc-5-branch/gcc/testsuite/gcc.dg/Woverride-init-1.c
    branches/gcc-5-branch/gcc/testsuite/gcc.dg/Woverride-init-2.c

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