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

            Bug ID: 117570
           Summary: DFP ICE in build_real
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

_Decimal64 a;

int
main ()
{
  return __builtin_isinf (a);
}

ICEs for years, over time in two different places, most recently in
internal compiler error: in build_real, at tree.cc:2406
    6 |   return __builtin_isinf (a);
      |   ^~~~~~
0x2dff69e internal_error(char const*, ...)
        ../../gcc/diagnostic-global-context.cc:518
0xec9cc1 fancy_abort(char const*, int, char const*)
        ../../gcc/diagnostic.cc:1696
0x19cae68 build_real(tree_node*, real_value)
        ../../gcc/tree.cc:2406
0x104f18c fold_builtin_interclass_mathfn
        ../../gcc/builtins.cc:9592
0x105819f fold_builtin_1
        ../../gcc/builtins.cc:10589
0x105819f fold_builtin_n
        ../../gcc/builtins.cc:10810
0x11fecbe fold_build_call_array_loc(unsigned int, tree_node*, tree_node*, int,
tree_node**)
        ../../gcc/fold-const.cc:14477
0xf240f8 build_function_call_vec(unsigned int, vec<unsigned int, va_heap,
vl_ptr>, tree_node*, vec<tree_node*, va_gc, vl_embed>*, vec<tree_node*, va_gc,
vl_embed>*, tree_node*)
        ../../gcc/c/c-typeck.cc:3851
0xf60b3d c_parser_postfix_expression_after_primary
        ../../gcc/c/c-parser.cc:13362
but gcc 4.3-11 ICEs in internal compiler error: in decimal_to_decnumber, at
dfp.c:134

Reply via email to