re PR c++/87476 (char-array initialized from wide-string)
authorJakub Jelinek <jakub@redhat.com>
Wed, 28 Nov 2018 08:50:53 +0000 (09:50 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 28 Nov 2018 08:50:53 +0000 (09:50 +0100)
commit62574f122c7aab5fe06e1b68c659650c17964dc4
treef2dd567f03518922286d256ea88871441e72ba25
parentace83db06c03b138c8b4cf87bf3db61f2d842e60
re PR c++/87476 (char-array initialized from wide-string)

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.

From-SVN: r266547
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr87476-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/pr87476-2.C [new file with mode: 0644]