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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2025-08-25
             Status|UNCONFIRMED                 |NEW
          Component|preprocessor                |middle-end
                 CC|                            |hubicka at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
```
[apinski@xeond2 gcc]$ ./cc1 t.c
 foo
Analyzing compilation unit
during GIMPLE pass: cfg
t.c: In function ‘foo’:
t.c:2:6: internal compiler error: in get_or_insert, at hash-map.h:208
    2 | void foo(void)
      |      ^~~
0x268471f internal_error(char const*, ...)
       
/home/apinski/src/upstream-gcc-new/gcc/gcc/diagnostic-global-context.cc:534
0xa295c3 fancy_abort(char const*, int, char const*)
        /home/apinski/src/upstream-gcc-new/gcc/gcc/diagnostics/context.cc:1687
0x8a0f32 hash_map<tree_node*, tree_node*,
simple_hashmap_traits<default_hash_traits<tree_node*>, tree_node*>
>::get_or_insert(tree_node* const&, bool*)
        /home/apinski/src/upstream-gcc-new/gcc/gcc/hash-map.h:208
0x8a4dba hash_map<int_hash<long, -1l, -2l>, discrim_entry,
simple_hashmap_traits<default_hash_traits<int_hash<long, -1l, -2l> >,
discrim_entry> >::get_or_insert(long const&, bool*)
        /home/apinski/src/upstream-gcc-new/gcc/gcc/hash-table.h:1118
0x8a4dba assign_discriminator(unsigned long, unsigned int,
hash_map<int_hash<long, -1l, -2l>, discrim_entry,
simple_hashmap_traits<default_hash_traits<int_hash<long, -1l, -2l> >,
discrim_entry> >&)
        /home/apinski/src/upstream-gcc-new/gcc/gcc/tree-cfg.cc:1101
0x1259caa assign_discriminators
        /home/apinski/src/upstream-gcc-new/gcc/gcc/tree-cfg.cc:1145
0x1259caa build_gimple_cfg
        /home/apinski/src/upstream-gcc-new/gcc/gcc/tree-cfg.cc:213
0x1259caa execute_build_cfg
        /home/apinski/src/upstream-gcc-new/gcc/gcc/tree-cfg.cc:332
0x1259caa execute
        /home/apinski/src/upstream-gcc-new/gcc/gcc/tree-cfg.cc:373
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
```

Confirmed. I am 99% sure it was caused by r16-2197-g385d9937f0e23c.

Reply via email to