System.Exception in RISC5 Compiler
Posted: Thu Dec 30, 2021 10:56 am
Test case:
Note the missing IMPORT statement.
With the v8.0 compiler:
With the v7.2 compiler:
Code: Select all
MODULE M1;
CONST OK := M2.OK;
END M1.
With the v8.0 compiler:
Code: Select all
OR Compiler 17.10.2021
compiling M1
2 14 Error: = ?
2 18 Error: undef
System.Exception: CASE-trap: selector = 54
at ORP.ORP.factor(Item& x)
at ORP.ORP.term(Item& x)
at ORP.ORP.SimpleExpression(Item& x)
at ORP.ORP.expression0(Item& x)
at ORP.ORP.Declarations(Int32& varsize)
at ORP.ORP.Module()
at Compiler.Compiler.Compile(String source, Writer w, Int32& errcnt)
Code: Select all
OR Compiler 12.08.2020
compiling M1
2 14 Error: = ?
2 18 Error: undef
3 4 Error: not a factor
compilation FAILED