https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88045
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |9.0 Known to fail|9.0 | --- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> --- So the problem is that on gcc-8 branch there's missing commit r261728 that fixes location of lambdas. What happens is that a lambda ends on a line before where it starts. So for gcc-8 branch a workaround would be needed.