System.Exception in RISC5 Compiler

Report any suspected bugs that you find
Post Reply
gray
Posts: 79
Joined: Tue Feb 12, 2019 2:59 am
Location: Mauritius

System.Exception in RISC5 Compiler

Post by gray » Thu Dec 30, 2021 10:56 am

Test case:

Code: Select all

MODULE M1;
  CONST OK := M2.OK;
END M1.
Note the missing IMPORT statement.

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)
With the v7.2 compiler:

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

Post Reply