https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99595
Bug ID: 99595 Summary: ICE when pack expansion with template lambda 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: --- The following code will trigger ICE on gcc-trunk: auto f(auto... args) { ([]<decltype(args) y>{ y; }, ...); } int main() { f(0); } (godbolt: https://godbolt.org/z/11G8G5) (wanbox: https://wandbox.org/permlink/Bbmq4ZWehhJqlBdk)