Branch: Tag:

2001-12-06

2001-12-06 14:10:30 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Improved fix for [bug 2511 (#2511)].

Rev: src/las.c:1.273

5:   \*/   /**/   #include "global.h" - RCSID("$Id: las.c,v 1.272 2001/11/08 23:34:29 nilsson Exp $"); + RCSID("$Id: las.c,v 1.273 2001/12/06 14:10:30 grubba Exp $");      #include "language.h"   #include "interpret.h"
954:    break;       case T_PROGRAM: -  if(a->u.sval.u.program->flags & PROGRAM_CONSTANT) +  if(a->u.sval.u.program->flags & PROGRAM_CONSTANT) {    opt_flags=0; -  +  } +  if (a->u.sval.u.program->flags & PROGRAM_USES_PARENT) { +  yyerror("Can not clone program without parent context."); +  }    break;    }    break;