https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99590
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > Here is a C++17 version which crashes from 8.1+: > template<typename ...T> > void g(T... args) { > ([args...](auto){}(args), ...); > } > > int main() { g(0, 1); } This started to ICE with r251433: commit f44a8dd56f5bfbd0596c39693e268ef880c06221 Author: Jason Merrill <ja...@redhat.com> Date: Tue Aug 29 16:37:15 2017 -0400 Reimplement handling of lambdas in templates. before it it compiled OK.