[Bug c++/84590] [7/8 Regression] -fsanitize=undefined internal compiler error: tree check: expected constructor, have target_expr in split_nonconstant_init_1, at cp/typeck2.c:629

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 28 17:01:00 GMT 2018


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

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #3)
> assumes that at least for non-vector cp_fully_fold of a CONSTRUCTOR will
> yield again a CONSTRUCTOR as well, but that is generally not the case.
> It could (at least in theory) result in error_mark_node, or VIEW_CONVERT_EXPR
> around the CONSTRUCTOR:
> or a TARGET_EXPR around the CONSTRUCTOR:

Hmm, I think cp_fully_fold should probably strip those.


More information about the Gcc-bugs mailing list