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

            Bug ID: 112511
           Summary: GCC: 14: internal compiler error: in
                    type_contains_placeholder_1, at tree.cc:4243
           Product: gcc
           Version: 14.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/E457vrbGM

When compiling this program with `gcc-14 -O2`, gcc ICEs:
```
struct T {
  _BitInt(22) a;
};

void g(struct T v) { }

void f() {
  struct T v;
  g(v);
}
```

The crash output pasted from Compiler Explorer:
```
during GIMPLE pass: esra
<source>: In function 'f':
<source>:10:1: internal compiler error: in type_contains_placeholder_1, at
tree.cc:4243
   10 | }
      | ^
0x238b06e internal_error(char const*, ...)
        ???:0
0xa1125c fancy_abort(char const*, int, char const*)
        ???:0
0x14596c1 type_contains_placeholder_p(tree_node*)
        ???: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.
Compiler returned: 1
```

Reply via email to