[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] Bug or user error in gm2-2011-04-09 Solaris 10/sparc
From: |
Gaius Mulley |
Subject: |
Re: [Gm2] Bug or user error in gm2-2011-04-09 Solaris 10/sparc |
Date: |
Tue, 26 Apr 2011 13:48:18 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
john o goyo <address@hidden> writes:
> Here is foreign.def:
>
> DEFINITION MODULE FOR "C" foreign;
>
> EXPORT UNQUALIFIED function;
>
> PROCEDURE function(c :CHAR);
>
> END foreign.
>
>
> Here is interface.mod:
>
> MODULE interface;
>
> IMPORT foreign;
>
> BEGIN
> foreign.function('!')
> END interface.
>
>
> Here is what gm2 does:
>
>
> johng: 507 [tst-gm2]=> gm2 -c -fiso interface.mod
> interface.mod: In function '_M2_interface_init':
> interface.mod:5: error: invalid lvalue in unary '&'
>
> Please advise.
>
> john
Hi John,
ahh thanks for the bug report - yes it looks as if gm2 is having trouble
with string to char conversion in this case, I will fix this,
regards,
Gaius