r236549 - in /trunk/gcc: c/ChangeLog c/c-typeck...

msebor@gcc.gnu.org msebor@gcc.gnu.org
Fri May 20 22:23:00 GMT 2016


Author: msebor
Date: Fri May 20 22:23:10 2016
New Revision: 236549

URL: https://gcc.gnu.org/viewcvs?rev=236549&root=gcc&view=rev
Log:
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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-sfinae.C
    trunk/gcc/testsuite/gcc.dg/init-excess-2.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/Woverride-init-1.c
    trunk/gcc/testsuite/gcc.dg/Woverride-init-2.c



More information about the Gcc-cvs mailing list