bug-marst
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in Marst assignment


From: Leif Harcke
Subject: bug in Marst assignment
Date: Sat, 9 Aug 2003 22:02:12 -0700 (PDT)

Hello,

I believe there is a bug in the implicit type conversion from integer to
real in simple assignment statements involving arrays.  The following
program generates the marst compiler error.  The same program runs
properly in Erik Schoenfelder's a60 interpreter.

yours,

--
Leif Harcke
address@hidden


begin
  integer i;
  real array a[1:10];

  for i := 1 step 1 until 10 do
    begin
      a[i] := i;
      outreal(1,a[i])
    end
end

marst testarray.a60

testarray.a60:8: different types in left part list of assignment statement
testarray.a60:10: one error detected on the second pass; translation
  terminated






reply via email to

[Prev in Thread] Current Thread [Next in Thread]