Branch: Tag:

2016-01-07

2016-01-07 11:34:33 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Fixed internal compiler error with implicit lambdas.

Implicit lambdas do not have a declared return type, so use the
push_compiler_frame variant for lambdas.

Thanks to Chris Angelico <rosuav@gmail.com> for the report
and test case.

Fixes [bug 7616]/[LysLysKOM 21578942].

3562:   optional_block: /* EMPTY */ { $$=0; }    | '{' line_number_info    /* FIXME: Use implicit_identifier to make __func__ point to the lambda? */ -  push_compiler_frame0 +  push_compiler_frame1    {    debug_malloc_touch(Pike_compiler->compiler_frame->current_return_type);    if(Pike_compiler->compiler_frame->current_return_type)