[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Re: invalid use of non-lvalue array
From: |
E. Weddington |
Subject: |
Re: [avr-gcc-list] Re: invalid use of non-lvalue array |
Date: |
Tue, 20 Apr 2004 07:03:47 -0600 |
On 20 Apr 2004 at 12:43, René Liebscher wrote:
> Is this problem solved? (PSTR with C++)
>
> I tried to change the PSTR macro to work around the problem.
>
> It was
>
> #define PSTR(s) ({static char __c[] PROGMEM = (s); __c;})
>
> after changing it to
>
> #define PSTR(s) ({static char __c[] PROGMEM = (s); &(*__c);})
>
> it seems to work.
> Maybe someone could check this, so it can be fixed in next versions of
> avr-libc?
>
Would you be willing to fill out a bug tracker over on the avr-libc project?
That way this issue
won't be forgotten (I already had....). Could you also put in a link to this
thread?
Thanks
Eric