https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99584
Bug ID: 99584 Summary: ICE Segmentation fault when expanding lambda noexcept specifier with invalid parameter pack Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hewillk at gmail dot com Target Milestone: --- This may be related/duplicated to PR 99513 or PR 99583, but I am not sure. The following invalid code triggers ICE in gcc-trunk: void f(...); template <typename... Args> void g(Args... args) { f([](Args) noexcept(args) {} ...); } int main() { g(0); } (godbolt: https://gcc.godbolt.org/z/477Mn8) (wandbox: https://wandbox.org/permlink/qA74qnIHdaZSX6JF)