m2c segfaults on compiling

Bug #80208 reported by turin
4
Affects Status Importance Assigned to Milestone
m2c (Debian)
Fix Released
Unknown
m2c (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: m2c

turin@gurthang:~/modula-2$ make
m2c -all -lm myfirst.mod -o myfirst
"myfirst.mod": 25: invalid statement
"myfirst.mod": 20: identifier write is not declared
"myfirst.mod": 22: identifier write is not declared
"myfirst.mod": 23: identifier write is not declared
"myfirst.mod": 25: identifier writeln is not declared
"myfirst.mod": 25: invalid statement
"myfirst.mod": 20: identifier write is not declared
"myfirst.mod": 22: identifier write is not declared
"myfirst.mod": 23: identifier write is not declared
"myfirst.mod": 25: identifier writeln is not declared
myfirst.mod - 159 lines, 9912 bytes
make: *** [ALL] Fallo de segmentación (core dumped) [Núcleo vaciado a un archivo]

The Makefile has:
ALL:
        m2c -all -lm myfirst.mod -o myfirst

And the program i was compiling (is a practice in modula-2, my fisrt buggy program in that languaje :P ):
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.

Revision history for this message
turin (marioabajo) wrote :
Revision history for this message
Ralph Janke (txwikinger) wrote :

I can confirm this problem on hardy BETA

Changed in m2c:
status: New → Confirmed
Changed in m2c:
status: Unknown → New
Changed in m2c (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.