public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/109696] New: ice: tree check fail
@ 2023-05-02 11:19 dcb314 at hotmail dot com
  2023-05-02 11:46 ` [Bug tree-optimization/109696] [14 Regression] ice: tree check fail since r14-377 jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dcb314 at hotmail dot com @ 2023-05-02 11:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109696
           Summary: ice: tree check fail
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For this C code:

sprint_tm(long ns) {
  char buf;
  double t = ns;
  if (t)
    sprintf(buf, "");
}
wait_for_reply_avg() { sprint_tm(wait_for_reply_avg); }

compiled by recent trunk gcc, does this:

$ ~/gcc/results.20230502.asan.ubsan/bin/gcc -c -w -O2 bug915.c
during IPA pass: inline
bug915.c:7:1: internal compiler error: tree check: expected class ‘type’, have
‘exceptional’ (error_mark) in verify_range, at value-range.cc:1060
    7 | wait_for_reply_avg() { sprint_tm(wait_for_reply_avg); }
      | ^~~~~~~~~~~~~~~~~~
0x115a4fa tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
        ../../trunk.year/gcc/tree.cc:8948
0x1183d13 tree_class_check(tree_node*, tree_code_class, char const*, int, char
const*)
        ../../trunk.year/gcc/tree.h:3663
0x1183d13 irange::verify_range()
        ../../trunk.year/gcc/value-range.cc:1060

It was fine yesterday:

$ ~/gcc/results.20230501.asan.ubsan/bin/gcc -c -w -O2 bug915.c
$

I suspect this is another one for Aldy.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-11-06  8:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-02 11:19 [Bug c/109696] New: ice: tree check fail dcb314 at hotmail dot com
2023-05-02 11:46 ` [Bug tree-optimization/109696] [14 Regression] ice: tree check fail since r14-377 jakub at gcc dot gnu.org
2023-05-02 12:15 ` rguenth at gcc dot gnu.org
2023-11-05 21:39 ` pinskia at gcc dot gnu.org
2023-11-05 21:41 ` pinskia at gcc dot gnu.org
2023-11-06  8:04 ` jakub at gcc dot gnu.org

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).