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

            Bug ID: 127907
           Summary: internal compiler error: in
                    get_representative_path_var_1 at `-S -O2 -fanalyzer`
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 0599jiangyc at gmail dot com
  Target Milestone: ---

The following code:
```c
struct A
{
  int x : 13;
};
int __attribute__ ((noinline))
f (void *p)
{
  return ((struct A *)p)->x != 0;
}
int main ()
{
  int a = 0;
  return f (&a);
}
```

Resulted in this output:
```
<source>:9:1: internal compiler error: in get_representative_path_var_1, at
analyzer/region-model.cc:5788

```

https://godbolt.org/z/Yea5TTEYP

Reply via email to