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

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


Author: jason
Date: Thu Jan 17 20:43:38 2019
New Revision: 268047

URL: https://gcc.gnu.org/viewcvs?rev=268047&root=gcc&view=rev
Log:
Improve the C error for mismatched array string literal initialization.

	* c-typeck.c (digest_init): Revised the error message produced for
	ill-formed cases of array initialization with a string literal.
	(error_init): Make variadic.

Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/testsuite/gcc.dg/init-string-2.c
    trunk/gcc/testsuite/gcc.dg/pr61096-1.c
    trunk/gcc/testsuite/gcc.dg/utf-array-short-wchar.c
    trunk/gcc/testsuite/gcc.dg/utf-array.c
    trunk/gcc/testsuite/gcc.dg/utf8-2.c


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