https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123304
Bug ID: 123304
Summary: ICE: Segmentation fault signal terminated program
cc1plus with lambda
Product: gcc
Version: 15.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: 522024330006 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer:https://compiler-explorer.com/z/xv54ej4WW
Program:
```c
int main() {
float z;
z += [](struct {})();
}
```
When I use gdb, I find this traceback:
```console
"/workspace/install/gcc/src/gcc/gcc/sancov.cc: make_pass_sancov: 344",
"/workspace/install/gcc/build_15.2.0/gcc/pass-instances.def:gcc::pass_manager::pass_manager:
272",
"/workspace/install/gcc/src/gcc/gcc/toplev.cc: general_init: 1154",
"/workspace/install/gcc/src/gcc/gcc/toplev.cc: toplev::main: 2296",
"/workspace/install/gcc/src/gcc/gcc/main.cc: main: 39"
```