https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68177
Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|--- |8.0 --- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> --- Fixed in trunk, very likely as part of Jason's lambda overhaul. I added the testcase and I'm closing the bug.