Branch: Tag:

2019-03-14

2019-03-14 10:33:01 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Fixed typechecker bug for automap.

This is a bug in the same class as [GitHub pikelang/Pike #25].

5:   \*/   /**/   #include "global.h" - RCSID("$Id: las.c,v 1.268 2001/09/28 00:01:45 hubbe Exp $"); + RCSID("$Id$");      #include "language.h"   #include "interpret.h"
3385: Inside #if defined(USE_PIKE_TYPE) && defined(NEW_ARG_CHECK)
   free_type(f);    if(n->token == F_AUTO_MAP)    { +  type_stack_mark();    push_finished_type(n->type);    push_type(T_ARRAY);    free_type(n->type); -  n->type = pop_type(); +  n->type = pop_unfinished_type();    }    break;    }
3422:       if(n->token == F_AUTO_MAP)    { +  type_stack_mark();    push_finished_type(n->type);    push_type(T_ARRAY);    free_type(n->type); -  n->type = pop_type(); +  n->type = pop_unfinished_type();    }       break;