[Bug c/123162] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in types_match, at generic-match-head.cc:63 with -Wlogical-op -mno-sse2 and __bf16

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Dec 17 07:49:16 GMT 2025


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2025-12-17
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(gdb) p debug_tree(lhs)
 <cond_expr 0x7ffff781c1b0
    type <integer_type 0x7ffff781d5e8 int public SI
        size <integer_cst 0x7ffff781f1b0 constant 32>
        unit-size <integer_cst 0x7ffff781f1c8 constant 4>
        align:32 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff781d5e8 precision:32 min <integer_cst 0x7ffff781f168 -2147483648> max
<integer_cst 0x7ffff781f180 2147483647>
        pointer_to_this <pointer_type 0x7ffff7825b28>>

    arg:0 <integer_cst 0x7ffff781f300 type <integer_type 0x7ffff781d5e8 int>
constant 0> arg:1 <integer_cst 0x7ffff781f300 0> arg:2 <error_mark
0x7ffff7802f48>
    t9.c:4:3 start: t9.c:4:3 finish: t9.c:4:11>


The bug is in parser_build_binary_op I think.


More information about the Gcc-bugs mailing list