https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106824
Bug ID: 106824 Summary: ice in set_nan, at value-range.cc:283 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 53535 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53535&action=edit gzipped C++ source code The attached C++ code does this with recent gcc: ./../include/fst/shortest-path.h:191:6: internal compiler error: in set_nan, at value-range.cc:283 0x13fcb6b frange::set_nan(fp_prop::kind) ../../trunk.git/gcc/value-range.cc:283 0x204ccb1 foperator_not_equal::op1_range(frange&, tree_node*, irange const&, fra nge const&, relation_kind_t) const ../../trunk.git/gcc/range-op-float.cc:468 0x1f2298b gimple_range_calc_op1(vrange&, gimple const*, vrange const&, vrange co nst&) ../../trunk.git/gcc/gimple-range-gori.cc:0 0x1f25a6d gori_compute::compute_operand1_range(vrange&, gimple*, vrange const&, tree_node*, fur_source&) Git range seems to be 152895769581468e..4fbe3e6aa74dae5c Flags required are -march=bdver2 -O2. I have a reduction running.