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

            Bug ID: 112503
           Summary: GCC: 14: internal compiler error: Segmentation fault
                    at gsi_start_edge(edge_def*)
           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/erEvbYYKc

When compiling this program with `gcc-14 -O1`, gcc crashes:
```
struct T { int x; };
int foo(void) {
  struct T v;
  asm goto("" : "+r"(v.x) : : : lab);
  return 0;
lab:
  return -5;
}
```

The crash output:
```
during GIMPLE pass: esra
<source>: In function 'foo':
<source>:8:1: internal compiler error: Segmentation fault
    8 | }
      | ^
0x238b15e internal_error(char const*, ...)
        ???:0
0xd7cb34 gsi_start_edge(edge_def*)
        ???: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
```
  • [Bug c/112503] New: GCC: 14... 141242068 at smail dot nju.edu.cn via Gcc-bugs

Reply via email to