This is the mail archive of the gcc-patches@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]

Re: [C++ Patch] PR 43453


Hi,

On 06/04/2014 09:32 PM, Jason Merrill wrote:
On 06/04/2014 02:08 PM, Paolo Carlini wrote:
        /* An array of character type can be initialized from a
-     brace-enclosed string constant.
-
-     FIXME: this code is duplicated from reshape_init. Probably
-     we should just call reshape_init here?  */

It strikes me as odd that we get here before we strip the parens. What if we moved the paren code up out of store_init_value to check_initializer before the call to maybe_deduce_size_from_array_init?
Ok... At first I was worried by the other maybe_deduce_size_from_array_init call, but I don't think the initializer of a char array can be dependent, right? Then I'm finishing testing the below.

Thanks!
Paolo.

///////////////////

Attachment: patch_43453_3
Description: Text document


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