[Bug middle-end/126814] [17 Regression] ICE in RTL expand in fill_ranger_cache at gimple-range-cache.cc:1658 since r17-3171

kocelfc at tutanota dot com via Gcc-bugs <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126814

Kostadin Shishmanov <kocelfc at tutanota dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kocelfc at tutanota dot com

--- Comment #9 from Kostadin Shishmanov <kocelfc at tutanota dot com> ---
The fix for this bug causes an ICE with the following testcase, just -O2 is
enough to trigger it.

during GIMPLE pass: thread
dwarf.i:5:6: internal compiler error: Segmentation fault
    5 | void e(int) {
      |      ^


```
unsigned char a;
unsigned int b;
char *c;
char d;
void e(int) {
  unsigned char *f;
  int g, h;
  if (h)
    g = b;
  f = &d + g;
  e(&a - f);
  c = f + 4;
  for (; c <= 4;)
  ;
}
```
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.