Page 1 of 1

Compiler error: success on binary + with single value

Posted: Tue Dec 27, 2011 8:14 pm
by kevin
This successfully compiles (and shouldnt):

Code: Select all

program p()
     f(1,2+,3);
endprogram

function f(a, b, c)
endfunction
With listfile:

Code: Select all

test.src, Line 130
program p() 
f(1,2+,3);
0: 3L
1: 3L
2: makelocal
3: jmp userfunc @6
4: #
5: progend
test.src, Line 132
function f(a, b, c) 
6: pop param 'c'
7: pop param 'b'
8: pop param 'a'
9: 0L
10: return
With runecl output:

Code: Select all

Fatal error: Value Stack Empty!
test.ecl, PC=9