BigEd / atalan

Automatically exported from code.google.com/p/atalan
MIT License
1 stars 0 forks source link

Segfault in "for t" without range #98

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
type t:0..3

for t
        "[t]"

segfaults during compile.
in gen.c, line 120

#0  0x000041f5 in GenInternal (op=INSTR_ADD, result=0x0, arg1=0x0, 
arg2=0x102310) at gen.c:120
120             if (arg1->mode == INSTR_CONST) {
(gdb) bt
#0  0x000041f5 in GenInternal (op=INSTR_ADD, result=0x0, arg1=0x0, 
arg2=0x102310) at gen.c:120
#1  0x00012bfe in ParseFor () at parser.c:2244
#2  0x00016234 in ParseCommands () at parser.c:4025
#3  0x00016317 in Parse (name=0xbfffe93c "test", main_file=1, parse_options=0) 
at parser.c:4055
#4  0x0000a095 in main (argc=9, argv=0xbffff96c) at main.c:249
(gdb) 

But
for t:0..3
      "[t]"

works of course.

Original issue reported on code.google.com by jakub.hu...@gmail.com on 28 Nov 2011 at 1:16