PR c/71115 - [4.9/5/6/7 Regression] Missing warning: excess elements
authorMartin Sebor <msebor@redhat.com>
Fri, 20 May 2016 22:23:10 +0000 (22:23 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Fri, 20 May 2016 22:23:10 +0000 (16:23 -0600)
commit79063edd747d348be1a86a5df5d4df046735d8fe
treeac73cfdeb4c5483ac27c5fdb146e58e30f7020d0
parent55c8849f5d8ca231dba2e4ed2c40c4d435c84ae3
PR c/71115 - [4.9/5/6/7 Regression] Missing warning: excess elements

PR c/71115 - [4.9/5/6/7 Regression] Missing warning: excess elements
in struct initializer

gcc/c/ChangeLog:
2016-05-20  Martin Sebor  <msebor@redhat.com>

PR c/71115
* c-typeck.c (error_init): Use
expansion_point_location_if_in_system_header.
(warning_init): Same.

gcc/testsuite/ChangeLog:
2016-05-20  Martin Sebor  <msebor@redhat.com>

PR c/71115
* gcc.dg/init-excess-2.c: New test.

From-SVN: r236549
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/constexpr-sfinae.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/Woverride-init-1.c
gcc/testsuite/gcc.dg/Woverride-init-2.c
gcc/testsuite/gcc.dg/init-excess-2.c [new file with mode: 0644]