[Bug tree-optimization/108582] [12/13 Regression] ICE on valid code at -Os and above with "-fno-tree-ccp -fno-tree-dce": tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.cc:87

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jan 28 18:50:47 GMT 2023


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

           What    |Removed                     |Added
           Keywords|                            |wrong-code
   Target Milestone|13.0                        |12.3
            Summary|[13 Regression] ICE on      |[12/13 Regression] ICE on
                   |valid code at -Os and above |valid code at -Os and above
                   |with "-fno-tree-ccp         |with "-fno-tree-ccp
                   |-fno-tree-dce": tree check: |-fno-tree-dce": tree check:
                   |expected class ‘type’, have |expected class ‘type’, have
                   |‘exceptional’ (error_mark)  |‘exceptional’ (error_mark)
                   |in                          |in
                   |useless_type_conversion_p,  |useless_type_conversion_p,
                   |at gimple-expr.cc:87        |at gimple-expr.cc:87

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note this is a latent bug since it was introduced by r12-1309-gc4574d23cb0734 .
I don't know what changed that cause the IR to be different on the trunk but I
just know it is a latent bug.

More information about the Gcc-bugs mailing list