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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|documentation               |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2026-02-28
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(gdb) p argtype
$1 = (tree) 0x7ffff742e690
(gdb) p debug_tree(argtype)
 <integer_type 0x7ffff742e690 char readonly type_6 QI
    size <integer_cst 0x7ffff741b3a8 type <integer_type 0x7ffff74230a8
bitsizetype> constant 8>
    unit-size <integer_cst 0x7ffff741b3c0 type <integer_type 0x7ffff7423000
sizetype> constant 1>
    align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff742e690 precision:8 min <integer_cst 0x7ffff741b3f0 -128> max
<integer_cst 0x7ffff741b420 127>
    pointer_to_this <pointer_type 0x7ffff742e738>>
$2 = void
(gdb) p debug_generic_expr(argtype)
const char
$3 = void

So what we need here is TYPE_MAIN_VARIANT before comparing it against the
character types ...

Reply via email to