2019-03-14
2019-03-14 10:33:01 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
d9d2580d97f0873734defc47872c1274957ca83f
(9 lines)
(+6/-3)
[
Show
| Annotate
]
Branch: 3e39b0af2b743b69417a3eba842ff96612a0a06c
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;