public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gcc-bugzilla at al42and dot me" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107732] New: ICE in lower_bound, at value-range.h:350 Date: Thu, 17 Nov 2022 08:36:37 +0000 [thread overview] Message-ID: <bug-107732-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107732 Bug ID: 107732 Summary: ICE in lower_bound, at value-range.h:350 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugzilla at al42and dot me Target Milestone: --- Created attachment 53916 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53916&action=edit Preprocessed source (-freport-bug) The following code (reduced example) triggers an ICE with a recent `master` (96e4244ef3ccf4867ca4e37fbc6800e64ef30af6). $ cat test.ii extern "C" double sqrt(double); double a, b, c; void d() { for (;;) { c = __builtin_fabs(a); sqrt(c); if (a) a = b; } } $ /home/aland/gcc-trunk/bin/g++ -O2 -c test.ii during GIMPLE pass: thread test.ii: In function ‘void d()’: test.ii:3:6: internal compiler error: in lower_bound, at value-range.h:350 3 | void d() { | ^ 0x9a92fc frange::lower_bound() const ../.././gcc/value-range.h:350 0x9a947d frange::lower_bound() const ../.././gcc/value-range.h:1127 0x9a947d foperator_abs::op1_range(frange&, tree_node*, frange const&, frange const&, relation_trio) const ../.././gcc/range-op-float.cc:1413 0x211bc78 foperator_abs::op1_range(frange&, tree_node*, frange const&, frange const&, relation_trio) const ../.././gcc/range-op-float.cc:1390 0x2002c25 gori_compute::compute_operand1_range(vrange&, gimple_range_op_handler&, vrange const&, tree_node*, fur_source&, value_relation*) ../.././gcc/gimple-range-gori.cc:1095 0x2001913 gori_compute::compute_operand_range(vrange&, gimple*, vrange const&, tree_node*, fur_source&, value_relation*) ../.././gcc/gimple-range-gori.cc:692 0x2002c9f gori_compute::compute_operand1_range(vrange&, gimple_range_op_handler&, vrange const&, tree_node*, fur_source&, value_relation*) ../.././gcc/gimple-range-gori.cc:1150 0x2001913 gori_compute::compute_operand_range(vrange&, gimple*, vrange const&, tree_node*, fur_source&, value_relation*) ../.././gcc/gimple-range-gori.cc:692 0x2005742 gori_compute::outgoing_edge_range_p(vrange&, edge_def*, tree_node*, range_query&) ../.././gcc/gimple-range-gori.cc:1373 0x13d21fd path_range_query::compute_ranges_in_block(basic_block_def*) ../.././gcc/gimple-range-path.cc:454 0x13d28a2 path_range_query::compute_ranges(bitmap_head const*) ../.././gcc/gimple-range-path.cc:622 0x14569e9 back_threader::find_taken_edge_cond(vec<basic_block_def*, va_heap, vl_ptr> const&, gcond*) ../.././gcc/tree-ssa-threadbackward.cc:324 0x1456b9e back_threader::maybe_register_path(back_threader_profitability&) ../.././gcc/tree-ssa-threadbackward.cc:248 0x1456ec8 back_threader::find_paths_to_names(basic_block_def*, bitmap_head*, unsigned int, back_threader_profitability&) ../.././gcc/tree-ssa-threadbackward.cc:371 0x145737c back_threader::find_paths_to_names(basic_block_def*, bitmap_head*, unsigned int, back_threader_profitability&) ../.././gcc/tree-ssa-threadbackward.cc:479 0x145737c back_threader::find_paths_to_names(basic_block_def*, bitmap_head*, unsigned int, back_threader_profitability&) ../.././gcc/tree-ssa-threadbackward.cc:479 0x1457dbf back_threader::maybe_thread_block(basic_block_def*) ../.././gcc/tree-ssa-threadbackward.cc:551 0x1457e71 back_threader::thread_blocks() ../.././gcc/tree-ssa-threadbackward.cc:979 0x1457ed0 execute ../.././gcc/tree-ssa-threadbackward.cc:1081 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.
next reply other threads:[~2022-11-17 8:36 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-11-17 8:36 gcc-bugzilla at al42and dot me [this message] 2022-11-17 15:12 ` [Bug c++/107732] " aldyh at gcc dot gnu.org 2022-11-17 15:54 ` aldyh at gcc dot gnu.org 2022-11-17 16:24 ` gcc-bugzilla at al42and dot me 2022-11-17 16:25 ` aldyh at gcc dot gnu.org 2022-11-17 17:43 ` cvs-commit at gcc dot gnu.org 2022-11-17 17:45 ` aldyh at gcc dot gnu.org 2022-11-28 22:25 ` [Bug c++/107732] [13 Regreession] " pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-107732-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).