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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
           Keywords|                            |ice-on-valid-code
                 CC|                            |anlauf at gcc dot gnu.org
   Last reconfirmed|                            |2023-07-12

--- Comment #5 from anlauf at gcc dot gnu.org ---
ICE confirmed for all versions tested (>= 7 ... 14-trunk).

(gdb) l
9222
9223          bool is_pdt_type = c->ts.type == BT_DERIVED
9224                             && c->ts.u.derived->attr.pdt_type;
9225
9226          cdecl = c->backend_decl;
9227          ctype = TREE_TYPE (cdecl);
9228
9229          switch (purpose)
9230            {
9231
(gdb) p c->name
$5 = 0x15555449f100 "i_mci"
(gdb) p c->backend_decl 
$6 = (tree) 0x0

The "i_mci" is a component of type process_mci_entry_t, not a local variable.
This is better seen with a slightly further reduced reproducer.

Reply via email to