Package: m2c
Version: 0.6-10.2

In order to reproduce:

m2c -all -lm myfirst.mod -o myfirst

using the code:

MODULE myfirst;
 FROM InOut IMPORT Write,WriteLn,WriteString;
 CONST n=50;
  TYPE matriz = ARRAY[1..n] OF INTEGER;
 PROCEDURE insercion_directa(VAR a: matriz);
  BEGIN
  END insercion_directa;
 PROCEDURE iniciar_array(VAR a: matriz);
  BEGIN
  END iniciar_array;
 PROCEDURE imprimir_array(VAR a:matriz);
  VAR
         i: INTEGER;
  BEGIN
         write("|");
         FOR i:=1 TO n DO
                 write(a[i]);
                 write("|");
         END
         writeln
  END imprimir_array;
 VAR
         arreglo: matriz;
  BEGIN
         iniciar_array(arreglo);
         imprimir_array(arreglo);
 END myfirst.

The result is:

"myfirst.mod": 20: invalid statement
"myfirst.mod": 15: identifier write is not declared
"myfirst.mod": 17: identifier write is not declared
"myfirst.mod": 18: identifier write is not declared
"myfirst.mod": 20: identifier writeln is not declared
"myfirst.mod": 20: invalid statement
"myfirst.mod": 15: identifier write is not declared
"myfirst.mod": 17: identifier write is not declared
"myfirst.mod": 18: identifier write is not declared
"myfirst.mod": 20: identifier writeln is not declared
myfirst.mod - 152 lines, 6200 bytes
/usr/lib/m2c/InOut.mod - 501 lines, 21804 bytes
/usr/lib/m2c/ASCII.mod - 43 lines, 2080 bytes
/usr/lib/m2c/String.mod - 189 lines, 10256 bytes
Segmentation fault (core dumped)

See core dump here:
http://launchpadlibrarian.net/5776034/_usr_bin_m2c.1000.crash

Thanks




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to