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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andrew Macleod <amacl...@gcc.gnu.org>:

https://gcc.gnu.org/g:6c121a2c687c56b09ecc11ef6ae1893ec5006325

commit r14-1871-g6c121a2c687c56b09ecc11ef6ae1893ec5006325
Author: Andrew MacLeod <amacl...@redhat.com>
Date:   Thu Jun 15 11:59:55 2023 -0400

    Check for integer only complex.

    With the expanded capabilities of range-op dispatch, floating point
    complex objects can appear when folding, whic they couldn't before.
    In the processig for extracting integers from complex ints, make sure it
    is an integer complex.

            PR tree-optimization/110266
            gcc/
            * gimple-range-fold.cc (adjust_imagpart_expr): Check for integer
            complex type.
            (adjust_realpart_expr): Ditto.

            gcc/testsuite/
            * gcc.dg/pr110266.c: New.

Reply via email to