[M3commit] [modula3/cm3] ae0820: Fix compiler crash on undeclared last actual param...

GitHub noreply at github.com
Thu Jan 21 17:36:57 CET 2016

  Branch: refs/heads/master
  Home:   https://github.com/modula3/cm3
  Commit: ae08202132f855c82a2499f171798d25a8b0cd26
  Author: Rodney Bates <rodney.m.bates at acm.org>
  Date:   2016-01-21 (Thu, 21 Jan 2016)

  Changed paths:
    M m3-sys/m3front/src/builtinWord/Extract.mg

  Log Message:
  Fix compiler crash on undeclared last actual parameter to Word.Extract.

Described as:
This is unusual.

  VAR x,m := 1;
    x := Word.Extract(x,m,n);
  END Test;


new source -> compiling test.m3
"../src/test.m3", line 190: undefined (n)

*** runtime error:
***    An enumeration or subrange value was out of range.
***    file "../AMD64_LINUX/WordExtract.m3 => ../src/builtinWord/Extract.mg", l
ine 120

Aborted (core dumped)

fix the undefined n and it compiles ok.


More information about the M3commit mailing list