public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/115646] New: [gcc][trunk] ICE in gen_conditions_for_pow_int_base, at tree-call-cdce.cc:587
@ 2024-06-25 13:02 141242068 at smail dot nju.edu.cn
  2024-06-25 14:11 ` [Bug c/115646] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: 141242068 at smail dot nju.edu.cn @ 2024-06-25 13:02 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 115646
           Summary: [gcc][trunk] ICE in gen_conditions_for_pow_int_base,
                    at tree-call-cdce.cc:587
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 141242068 at smail dot nju.edu.cn
  Target Milestone: ---

Compiler explorer: https://gcc.godbolt.org/z/rax1zezbc

The testing program:
```
#include <math.h>

struct S {
    unsigned int a : 3, b : 8, c : 21;
};

void foo (struct S *p)
{
  pow(p->c, 42);
}
```

When compiling it using gcc-trunk with option `-O2`, gcc crashes:
```
during GIMPLE pass: cdce
<source>: In function 'foo':
<source>:7:6: internal compiler error: in gen_conditions_for_pow_int_base, at
tree-call-cdce.cc:587
    7 | void foo (struct S *p)
      |      ^~~
0x23be10c internal_error(char const*, ...)
        ???:0
0x986355 fancy_abort(char const*, int, char const*)
        ???:0
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.
```

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

end of thread, other threads:[~2024-09-18 10:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-25 13:02 [Bug c/115646] New: [gcc][trunk] ICE in gen_conditions_for_pow_int_base, at tree-call-cdce.cc:587 141242068 at smail dot nju.edu.cn
2024-06-25 14:11 ` [Bug c/115646] " rguenth at gcc dot gnu.org
2024-06-26  6:55 ` cvs-commit at gcc dot gnu.org
2024-06-26  6:57 ` [Bug tree-optimization/115646] [11/12/13/14 Regression] " rguenth at gcc dot gnu.org
2024-07-08 11:57 ` cvs-commit at gcc dot gnu.org
2024-07-19 13:25 ` [Bug tree-optimization/115646] [12/13 " rguenth at gcc dot gnu.org
2024-09-18 10:32 ` cvs-commit 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).