[Bug c++/107574] [10/11/12/13 Regression] ICE: tree check in cp_fold_convert with ptr to member field cast inside a class not completed and inherent

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 8 17:43:54 GMT 2022


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[10/11/12/13 Regression]    |[10/11/12/13 Regression]
                   |ICE: tree check: expected   |ICE: tree check in
                   |record_type or union_type   |cp_fold_convert with ptr to
                   |or qual_union_type, have    |member field cast inside a
                   |integer_type in             |class not completed and
                   |cp_fold_convert, at         |inherent
                   |cp/cvt.cc:613               |

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note moving the static_assert outside of the class does not cause a crash.


More information about the Gcc-bugs mailing list