Branch: Tag:

2012-05-22

2012-05-22 12:40:15 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Ensure that foreach always generates a node.

Fixes LysLysKOM 19705902:
| 19705902 2012-05-22 12:22 /4 rader/ Martin Nilsson (Opera Mini - AFK!)
| Mottagare: Henrik Grubbström (Lysator) <11101>
| Mottagare: Martin Nilsson (Opera Mini - AFK!) <14470>
| Mottaget: 2012-05-22 12:22
| Ärende: Parser bug
| ------------------------------------------------------------
|
| Pike v7.9 release 5 running Hilfe v3.5 (Incremental Pike Frontend)
| > foreach(f, mapping(string:string));
| Segmentation fault
| (19705902) /Martin Nilsson (Opera Mini - AFK!)/-----

3220:    $9);    } else {    /* Error in lvalue */ -  free_node($6); -  $$=$9; +  $$=mknode(F_COMMA_EXPR, mkcastnode(void_type_string, $6), $9);    }    COPY_LINE_NUMBER_INFO($$, $3);    free_node ($3);