[M3devel] compiler problems on Snow Leopard
Mika Nystrom
mika at async.caltech.edu
Thu Dec 30 23:58:27 CET 2010
All right, I have been able to whittle down a test for the "code generation
error":
INTERFACE CG_Error; END CG_Error.
MODULE CG_Error;
TYPE SchemeObject_T = REFANY;
EXCEPTION Scheme_E;
PROCEDURE ToScheme_VAL0LONGINT__VAL0LONGINT(READONLY x : [ VAL(0, LONGINT )..VAL(0, LONGINT ) ]) : SchemeObject_T RAISES { Scheme_E } =
BEGIN
RETURN ToScheme_LONGINT(x)
END ToScheme_VAL0LONGINT__VAL0LONGINT;
PROCEDURE ToScheme_LONGINT(READONLY x : LONGINT ) : SchemeObject_T RAISES { Scheme_E } =
BEGIN
WITH ref = NEW(REF LONGINT) DO
ref^ := x;
END
END ToScheme_LONGINT;
BEGIN END CG_Error.
new source -> compiling CG_Error.i3
new source -> compiling CG_Error.m3
"../src/CG_Error.m3", line 12: warning: exception is never raised: CG_Error.Scheme_E
"../src/CG_Error.m3", line 6: warning: not used (ToScheme_VAL0LONGINT__VAL0LONGINT)
"../src/CG_Error.m3", line 15: warning: function may not return a value (ToScheme_LONGINT)
"../src/CG_Error.m3", line 1: 1 code generation error
1 error and 3 warnings encountered
Mika
More information about the M3devel
mailing list