gm2
[Top][All Lists]
Advanced

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

Re: [Gm2] [GM2] gm2m fails to generate Makefile when -fmakeall is used o


From: Gaius Mulley
Subject: Re: [Gm2] [GM2] gm2m fails to generate Makefile when -fmakeall is used on a module with reference
Date: Wed, 07 Mar 2018 08:08:32 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Roberto Aragón <address@hidden> writes:

> Hi, everybody.
>
> I would like to report an strage issue with gm2 1.6.4_0.4 down
> to 1.2.0_0.1. Only tested Debian (ubuntu 16.06).
>
> When a module is referencing another local module and compilation is
> done via:
>
> $ gm2 -fmakeall test.mod
>
> gm2m fails with this error:
>
> test.mod:6:expecting one of: IMPLEMENTATION MODULE DEFINITION
> test.mod:6:expecting one of: IMPLEMENTATION MODULE DEFINITION
> test.mod:6:expecting one of: IMPLEMENTATION MODULE DEFINITION
>
> The modules contents are:
>
> MODULE test;
>   FROM test1 IMPORT print;
> BEGIN
>   print("Hello world");
> END test.
>
> Referenced module definition:
>
> DEFINITION MODULE test1;
>   EXPORT UNQUALIFIED print;
>   PROCEDURE print(msg: ARRAY OF CHAR);
> END test1.
>
> And implementation:
>
> IMPLEMENTATION MODULE test1;
>   FROM StrIO IMPORT WriteString, WriteLn;
>   PROCEDURE print(msg: ARRAY OF CHAR);
>   BEGIN
>     WriteString(msg);
>     WriteLn();
>   END print;
> END test1.
>
> I've tested 1.6.4, 1.5.4 and 1.2.0 version with the same results. 1.1.6
> is not affected. The makefile is not generated.
>
> Maybe the command line for compilation is wrong? Adding "-I." doesn't
> help either.
>
> Regards,
> Roberto.

Hi Roberto,

many thanks for the bug report, test cases and analysis of the versions
affected.  I will fix this and generate a regression test

regards,
Gaius



reply via email to

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