This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/43453] Initialization of char array with string literal fails in mem-initializer


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43453

--- Comment #7 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Jun  4 22:30:39 2014
New Revision: 211248

URL: http://gcc.gnu.org/viewcvs?rev=211248&root=gcc&view=rev
Log:
/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.

Added:
    trunk/gcc/testsuite/g++.dg/init/pr43453.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/cp/typeck2.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]