gm2
[Top][All Lists]
Advanced

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

Re: [Gm2] Comparission bug ?


From: Gaius Mulley
Subject: Re: [Gm2] Comparission bug ?
Date: Wed, 21 Jan 2009 20:46:38 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Iztok Kobal <address@hidden> writes:

> (gm2 on top of gcc-4.1.2)
>
> This should go through, I guess :-\
>
> MODULE test;
>
> TYPE
> Enum = (A, B, C, D);
> Typ = [A..D];
>
> VAR
> typ : Typ;
>
> BEGIN
> IF typ = A THEN
> typ := B;
> END;
> END test.
>
> gm2 -c -I. -fiso test.mod
> test.mod: In function '_M2_test_init':
> test.mod:10: error: invalid operands to binary !=
>
>
> Regards, Iztok

Hi Iztok,

now fixed in the latest cvs

   * gm2/gccgm2.c:  boolean_to_unsigned changed to
     boolean_enum_to_unsigned and modified accordingly.
     Call boolean_enum_to_unsigned in comparison build
     functions.

regards,
Gaius




reply via email to

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