https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117533
Bug ID: 117533 Summary: internal compiler error: Segmentation fault signal terminated program cc1plus with incomplete type Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: yihan4845 at gmail dot com Target Milestone: --- Compiler Explorer: https://godbolt.org/z/bzPojo1W4 The following program: ```cpp class Empty {}; void use() { [](volatile class Empty ;) {}; } ``` will trigger segmentation fault for gcc trunk. Stack dump: ``` g++: internal compiler error: Segmentation fault signal terminated program cc1plus Please submit a full bug report, with preprocessed source (by using -freport-bug). See <https://gcc.gnu.org/bugs/> for instructions. Compiler returned: 4 ```