gm2
[Top][All Lists]
Advanced

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

Re: [Gm2] ELSE clause woes in gm2-2009-08-05


From: Gaius Mulley
Subject: Re: [Gm2] ELSE clause woes in gm2-2009-08-05
Date: Fri, 14 Aug 2009 18:37:25 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

john o goyo <address@hidden> writes:

>> crale" <address@hidden> writes:
>>
>>> Hi!
>>>
>>> gcc-4.1.2+gm2-cvs-latest (August 5th 2009), Cygwin, Windows Vista,
>>> x86-32, I got the following error:
>>>
>>> ../../gcc-4.1.2+gm2-cvs-latest/gcc/gm2/ulm-lib-gm2/std/
>>> RTErrors.def:44:6: error: not all variant record alternatives in
>>> the CASE clause are specified, hint you either need to specifiy
>>> each value of record field or use an ELSE clause.
>
> The same error for other platforms.  Until now, I was not aware that
> Modula-96 (aka ISO Modula-2)
> required an ELSE clause even in data-type definitions.  At any rate,
> I added ELSE clauses with some
> dummy variables but the compiler chokes trying to finish compiling
> RTErrors.

Hi,

thanks for reporting this bug.  I think I've fixed it in my local copy
of the cvs, I'm currently rebuilding from scratch to test.  Yes the
ISO Modula-2 requires an ELSE clause if any of the possible variants
alternatives are missing.  Potentially this is quite nice as the
compiler can then double check to ensure the user has not missed
anything.

In the interim you could check out 2009 07 30, but hopefully I should
be checking in a fix in the next 24 hours..

regards,
Gaius




reply via email to

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