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

            Bug ID: 128528
           Summary: internal compiler error: tree check: expected
                    integer_cst, have mult_expr in get_len, at tree.h
           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:
```cpp
template <typename T> void bar (T, int n) {
  typedef int X[n];
  struct Z { X x; };
}
void foo () { bar (0, 1); }
```

Resulted in this output:
```
<source>:3:10: internal compiler error: tree check: expected integer_cst, have
mult_expr in get_len, at tree.h:6796
```

Trunk reproducer: https://godbolt.org/z/EbcP14G88
  • [Bug c++/128528] New: internal c... 0599jiangyc at gmail dot com via Gcc-bugs

Reply via email to