/cp
commit40196b7832598b0a0298d7a8bc5b8a4c723c80aa
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jun 2014 22:30:39 +0000 (4 22:30 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jun 2014 22:30:39 +0000 (4 22:30 +0000)
treeb9756029ec20b53787ad1ff9ea1241b49d180f5a
parent6da874c959d47a18ec635dea755a88e6831e5508
/cp
2014-06-04  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/43453
* typeck.c (cp_build_modify_expr): Handle array of characters
initialized by a string literal.
* decl.c (check_initializer): Handle parenthesized string literal
as initializer.
* typeck2.c (store_init_value): Remove redundant check.

/testsuite
2014-06-04  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/43453
* g++.dg/init/pr43453.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211248 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/typeck.c
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/pr43453.C [new file with mode: 0644]