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

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

https://gcc.gnu.org/g:740d64815c6c8afff5e92fff0f5e9e600361ff75

commit r11-10012-g740d64815c6c8afff5e92fff0f5e9e600361ff75
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Apr 4 10:20:05 2022 +0200

    middle-end/105140 - fix bogus recursion in fold_convertible_p

    fold_convertible_p expects an operand and a type to convert to
    but recurses with two vector component types.  Fixed by allowing
    types instead of an operand as well.

    2022-04-04  Richard Biener  <rguent...@suse.de>

            PR middle-end/105140
            * fold-const.c (fold_convertible_p): Allow a TYPE_P arg.

            * gcc.dg/pr105140.c: New testcase.

    (cherry picked from commit eaaf77dd85c333b116111bb1ae6c080154a4e411)

Reply via email to