https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67410
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue May 30 07:12:08 2017 New Revision: 248596 URL: https://gcc.gnu.org/viewcvs?rev=248596&root=gcc&view=rev Log: Backported from mainline 2016-08-12 Jakub Jelinek <ja...@redhat.com> Martin Liska <mli...@suse.cz> PR c/67410 * c-typeck.c (set_nonincremental_init_from_string): Use / instead of % to determine val element to change. Assert that wchar_bytes * charwidth fits into val array. * gcc.dg/pr67410.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.dg/pr67410.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