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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:268b43d2592c196ea101946d7063156a914b2713

commit r12-4845-g268b43d2592c196ea101946d7063156a914b2713
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Nov 2 09:58:00 2021 +0100

    middle-end/103038 - avoid ICE with -ftrivial-auto-var-init=pattern

    This avoids ICEing with expanding a VIEW_CONVERT_EXRP of a SSA name
    on the LHS by making sure we can native-interpret OFFSET_TYPE and
    by never building such a LHS but instead view-converting the RHS
    for SSA LHS.

    2021-11-02  Richard Biener  <rguent...@suse.de>

            PR middle-end/103038
            * fold-const.c (native_interpret_expr): Handle OFFSET_TYPE.
            (can_native_interpret_type_p): Likewise.
            * internal-fn.c (expand_DEFERRED_INIT): View-convert the
            RHS if the LHS is an SSA name.

            * g++.dg/pr103038.C: New testcase.

Reply via email to