Re: [ooc-compiler] Bug? MAX without argument
Brought to you by:
mva
|
From: Michael v. A. <Mic...@de...> - 2004-11-04 10:30:14
|
"August" <fus...@te...> writes: > When I compile > > MODULE Test; > VAR x: LONGINT; > BEGIN x := MAX; > END Test. > > with oo2c version 2.1.5 i get > > ## > ## Runtime error in module OOC:IR at pos 100165 > ## Assertion failed, code 127 > ## > make: *** [test] Error 127 > > Compilation exited abnormally with code 2 at Thu Nov 04 04:35:09 > > rather than the error message "Expression not compatible with variable > type `LONGINT'". The special nature of predefined functions is tripping up the type checker here. This looks an excellent new test case for the compiler :-) Thank you! -- mva |