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++/59886] [4.9 Regression] C++ array init optimization results in RANGE_EXPRs in assignments


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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Even the const there isn't needed.

Anyway, the bug I think is that split_nonconstant_init_1 doesn't handle
RANGE_EXPR field_index in the if (TREE_CODE (value) == CONSTRUCTOR) case
(it handles it in the else if (!initializer_constant_valid_p (value,
inner_type))
case).


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