https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119008
--- Comment #3 from terryinzaghi <terryinzaghi at 163 dot com> --- (In reply to Andrew Pinski from comment #1) > Dup. The problem is GCC thinks > ends the template argument even though it > is still inside a lambda definition. > > *** This bug has been marked as a duplicate of bug 111008 *** got it. when I test with clang(x86-trunk), it seems clang can correctly handle this.