[Bug c++/87476] [9 Regression] char-array initialized from wide-string
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 28 08:51:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87476
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Nov 28 08:50:53 2018
New Revision: 266547
URL: https://gcc.gnu.org/viewcvs?rev=266547&root=gcc&view=rev
Log:
PR c++/87476
* typeck2.c (digest_init_r): Re-add handing of signed/unsigned char
strings and add it to the initialization of wide array from non-wide
string diagnostics too.
* g++.dg/cpp0x/pr87476-1.C: New test.
* g++.dg/cpp0x/pr87476-2.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/pr87476-1.C
trunk/gcc/testsuite/g++.dg/cpp0x/pr87476-2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list