------- Additional Comments From gdr at integrable-solutions dot net  
2004-12-21 19:27 -------
Subject: Re:  ("foo") accepted as char[] initializer

"nathan at gcc dot gnu dot org" <[EMAIL PROTECTED]> writes:

| 2004-12-16  Nathan Sidwell  <[EMAIL PROTECTED]>
| 
|       PR c++/14075
|       * decl.c (check_initializer): Check string initializer of array is
|       not parenthesized.
|       * cp-tree.h (PAREN_STRING_LITERAL_P): New.
|       * semantics.c (finish_parenthesized_expr): Mark a STRING_CST.
|       * error.c (dump_expr): <STRING_CST case> Add parens, if needed.

The change for error.c is wrong.  It should have been in
gccp/c-pretty-print.c.  And the flag should have been common to both C
and C++ too.

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14075

Reply via email to