gm2
[Top][All Lists]
Advanced

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

Re: [Gm2] ADR("a")


From: Gaius Mulley
Subject: Re: [Gm2] ADR("a")
Date: Wed, 27 Jun 2012 13:04:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

SiTex Graphics <address@hidden> writes:

> Hi Gaius,
>
> GM2 allows one to take the address of a constant string with ADR():
>
> ADR("foo")
>
> which is great because most of our apps use that functionality.
> However, if the string is a single char, GM2 issues an error message:
>
> ADR("f")
> error: invalid lvalue in unary ‘&’
>
> Test code attached.  Compile with
>
> gm2 -o testadr -fiso testadr.mod
>
> Also, the line number referenced in the error report is wrong; it's
> close in this test case, but in our actual code it's sometimes 100+
> lines away.
>
> Could GM2 support ADR() of a single char string, or if that's not
> possible, report a more accurate error location?
>
> Thanks,
> Scott

Hi Scott,

certainly - will fix both of these bugs, thanks for the report,

regards,
Gaius



reply via email to

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