--- ../Lcompile.c 2016-06-07 18:16:02.756335209 +0200 +++ tcl/generic/Lcompile.c 2016-06-07 18:16:17.240406909 +0200 @@ -341,6 +341,9 @@ /* Extract the L state from the interp. */ L = Tcl_GetAssocData(interp, "L", NULL); + /* This will reset a previous syntax error flag */ + L->err = 0; + /* * Verify that lib L was loaded. L fails badly if lib L isn't * there, and this catches cases where the user overrides the