Fixed #4799 (Segmentation fault in K&R simplification inside lambda expression)