https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97533
Bug ID: 97533 Summary: ICE encountering operator() within lambda expression within templated struct Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: harry at mccleave dot ca Target Milestone: --- gcc version: 10.2 options: /std:c++17 Issue: internal compiler error godbolt link: https://godbolt.org/z/W4GGnE reduced code that replicates: template<typename T> struct Blah { void operator()(int& a,int& b) { [this](auto&... args) { (operator()(args),...); }(a, b); } }; int main() { Blah<void> proc; int a, b; proc(a, b); }