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: Thu, 28 Jun 2012 17:56:32 +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 ‘&’

Hi Scott,

now fixed in the latest cvs - thanks for the report!

regards,
Gaius

> 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
>
> _______________________________________________
> gm2 mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/gm2



reply via email to

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