This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r268047 - in /trunk/gcc: c/ChangeLog c/c-typeck...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 17 Jan 2019 20:43:38 -0000
- Subject: 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