https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109742
Bug ID: 109742 Summary: ICE on unexpanded NTTP pack Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: 420 at zerberste dot es Target Milestone: --- The following erroneous code snippet triggers an ICE on all versions since 8.1 (including trunk): template <typename...> void ice(){ return ([]<auto... g>(){ return g; }() || ...); } template void ice<>(); See https://godbolt.org/z/1jPbe3h9G