https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108354
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Full backtrace: (gdb) bt #0 0x000000000158208f in get_range_query (fun=0x0) at /home/apinski/src/upstream-gcc/gcc/gcc/value-query.h:143 #1 0x0000000001e4a9f0 in ssa_name_has_boolean_range (op=0x7ffff52a6870) at /home/apinski/src/upstream-gcc/gcc/gcc/tree-ssanames.cc:534 #2 0x00000000026a6e33 in generic_simplify_MINUS_EXPR (loc=0, code=MINUS_EXPR, type=0x7ffff725c000, _p0=0x7ffff7242d50, _p1=0x7ffff52a6870) at generic-match.cc:36418 #3 0x00000000027c9064 in generic_simplify (loc=0, code=MINUS_EXPR, type=0x7ffff725c000, _p0=0x7ffff7242d50, _p1=0x7ffff52a6870) at generic-match.cc:103671 #4 0x00000000015670c0 in fold_binary_loc (loc=0, code=MINUS_EXPR, type=0x7ffff725c000, op0=0x7ffff7242d50, op1=0x7ffff52a6870) at /home/apinski/src/upstream-gcc/gcc/gcc/fold-const.cc:10926 #5 0x0000000001575b6a in fold_build2_loc (loc=0, code=MINUS_EXPR, type=0x7ffff725c000, op0=0x7ffff7242d50, op1=0x7ffff52a6870) at /home/apinski/src/upstream-gcc/gcc/gcc/fold-const.cc:13824 #6 0x000000000150714d in get_inner_reference (exp=0x7ffff5a89540, pbitsize=0x7fffffffd5a8, pbitpos=0x7fffffffd5b0, poffset=0x7fffffffd568, pmode=0x7fffffffd54c, punsignedp=0x7fffffffd550, preversep=0x7fffffffd554, pvolatilep=0x7fffffffd560) at /home/apinski/src/upstream-gcc/gcc/gcc/expr.cc:7995 #7 0x00000000016dac07 in (anonymous namespace)::isra_analyze_call (cs=0x7ffff4e59888) at /home/apinski/src/upstream-gcc/gcc/gcc/ipa-sra.cc:2167 #8 0x00000000016dad39 in (anonymous namespace)::isra_analyze_all_outgoing_calls (node=0x7ffff5a38cc0) at /home/apinski/src/upstream-gcc/gcc/gcc/ipa-sra.cc:2202 #9 0x00000000016e2295 in ipa_sra_summarize_function (node=0x7ffff5a38cc0) at /home/apinski/src/upstream-gcc/gcc/gcc/ipa-sra.cc:4540 #10 0x00000000016dc4e0 in (anonymous namespace)::ipa_sra_generate_summary () at /home/apinski/src/upstream-gcc/gcc/gcc/ipa-sra.cc:2716 #11 0x000000000195ef94 in execute_ipa_summary_passes (ipa_pass=0x52a9270) at /home/apinski/src/upstream-gcc/gcc/gcc/passes.cc:2297 #12 0x00000000013b8699 in ipa_passes () at /home/apinski/src/upstream-gcc/gcc/gcc/cgraphunit.cc:2226 #13 0x00000000013b8987 in symbol_table::compile (this=0x7ffff7246000) at /home/apinski/src/upstream-gcc/gcc/gcc/cgraphunit.cc:2322 #14 0x00000000013b8f7c in symbol_table::finalize_compilation_unit (this=0x7ffff7246000) at /home/apinski/src/upstream-gcc/gcc/gcc/cgraphunit.cc:2574 #15 0x0000000001ac4ae9 in compile_file () at /home/apinski/src/upstream-gcc/gcc/gcc/toplev.cc:471 #16 0x0000000001ac7b29 in do_compile (no_backend=false) at /home/apinski/src/upstream-gcc/gcc/gcc/toplev.cc:2125 #17 0x0000000001ac7f11 in toplev::main (this=0x7fffffffdba2, argc=28, argv=0x7fffffffdca8) at /home/apinski/src/upstream-gcc/gcc/gcc/toplev.cc:2277 #18 0x00000000034a7ea1 in main (argc=28, argv=0x7fffffffdca8) at /home/apinski/src/upstream-gcc/gcc/gcc/main.cc:39