[Bug c/101642] New: ice in decompose, at wide-int.h:984

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Tue Jul 27 12:08:22 GMT 2021


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

            Bug ID: 101642
           Summary: ice in decompose, at wide-int.h:984
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 51210
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51210&action=edit
C source code

The attached C code does this with recent gcc:

$ ../results/bin/gcc -c -O2 bug740.c 
during GIMPLE pass: fre
netflow_v1.c: In function ‘Process_v1’:
netflow_v1.c:507:1: internal compiler error: in decompose, at wide-int.h:984
0x139979c wi::int_traits<generic_wide_int<wide_int_storage> >::decompose(long*, 
unsigned int, generic_wide_int<wide_int_storage> const&)
        ../../trunk.git/gcc/wide-int.h:984
0x139979c wide_int_ref_storage<true,
false>::wide_int_ref_storage<generic_wide_i
nt<wide_int_storage> >(generic_wide_int<wide_int_storage> const&, unsigned int)
        ../../trunk.git/gcc/wide-int.h:1034
0x139979c generic_wide_int<wide_int_ref_storage<true, false>
>::generic_wide_int
<generic_wide_int<wide_int_storage> >(generic_wide_int<wide_int_storage>
const&,
 unsigned int)
        ../../trunk.git/gcc/wide-int.h:790

I will have my usual go at reducing the code and trying to spot a
range of git hashes where the problem first occurs.


More information about the Gcc-bugs mailing list