https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102799
Bug ID: 102799 Summary: decltype with lambda without body error cause ICE Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: nickhuang99 at hotmail dot com Target Milestone: --- The lambda in outside "decltype" forget to add lambda body which cause ICE where clang clearly points out this root cause. MSVC++ at least reports error without crash. decltype([](decltype([]{}))) gibish; g++: internal compiler error: Segmentation fault signal terminated program cc1plus Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. Compiler returned: 4