https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58566
Ville Voutilainen <ville.voutilainen at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2015-10-11 CC| |ville.voutilainen at gmail dot com Assignee|unassigned at gcc dot gnu.org |ville.voutilainen at gmail dot com Ever confirmed|0 |1 --- Comment #3 from Ville Voutilainen <ville.voutilainen at gmail dot com> --- Looks like this should be fixed by changing from void_type_node to error_mark_node in lambda_return_type() when it diagnoses an incomplete type. I'll see whether that causes any regressions.