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

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Tue Dec 10 16:27:00 GMT 2019


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

            Bug ID: 92891
           Summary: ice in decompose, at wide-int.h:984
           Product: gcc
           Version: 10.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 47464
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47464&action=edit
C source code

The attached C code, with recent gcc trunk and compiler flag -O2,
does this:

during GIMPLE pass: strlen
iplookup.c: In function ‘iplookup_router_entry’:
iplookup.c:148:1: internal compiler error: in decompose, at wide-int.h:984
0x5da4cc wi::int_traits<generic_wide_int<wide_int_storage> >::decompose(long*,
u
nsigned int, generic_wide_int<wide_int_storage> const&)
        ../../trunk/gcc/wide-int.h:984
0x949225 wi::int_traits<generic_wide_int<wide_int_storage> >::decompose(long*,
u
nsigned int, generic_wide_int<wide_int_storage> const&)
        ../../trunk/gcc/wide-int.h:1931
0x949225 wide_int_ref_storage<true,
false>::wide_int_ref_storage<generic_wide_in
t<wide_int_storage> >(generic_wide_int<wide_int_storage> const&, unsigned int)
        ../../trunk/gcc/wide-int.h:1034
0x949225 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)

The problem first seems to occur sometime between revision 278950
and 279000.

Reducing the code now.


More information about the Gcc-bugs mailing list