From: SourceForge.net <no...@so...> - 2005-02-25 10:10:25
|
Bugs item #1151648, was opened at 2005-02-25 10:10 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1151648&group_id=599 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Ant.M. (antm) Assigned to: Nobody/Anonymous (nobody) Summary: a cast pointer is not lvalue Initial Comment: /* memcpy */ void memcpy(void *dest, void *src, unsigned cnt ) { do { *((char *)dest)++ = *((char *)src)++; } while (--cnt > 0); } /* command : sdcc -c -mz80 -o bug3.o bug3.c */ /* bug3.c:6: error 10: 'lvalue' required for '++' operation. */ /* bug3.c:6: error 10: 'lvalue' required for '++' operation. */ /* SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ ds400/hc08 2.4.8 #963 (Feb 21 2005) (MINGW32) */ ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1151648&group_id=599 |
From: SourceForge.net <no...@so...> - 2005-02-25 13:15:06
|
Bugs item #1151648, was opened at 2005-02-25 11:10 Message generated for change (Comment added) made by maartenbrock You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1151648&group_id=599 >Category: C-Front End >Group: non bugs >Status: Closed >Resolution: Rejected Priority: 5 Submitted By: Ant.M. (antm) Assigned to: Nobody/Anonymous (nobody) Summary: a cast pointer is not lvalue Initial Comment: /* memcpy */ void memcpy(void *dest, void *src, unsigned cnt ) { do { *((char *)dest)++ = *((char *)src)++; } while (--cnt > 0); } /* command : sdcc -c -mz80 -o bug3.o bug3.c */ /* bug3.c:6: error 10: 'lvalue' required for '++' operation. */ /* bug3.c:6: error 10: 'lvalue' required for '++' operation. */ /* SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ ds400/hc08 2.4.8 #963 (Feb 21 2005) (MINGW32) */ ---------------------------------------------------------------------- >Comment By: Maarten Brock (maartenbrock) Date: 2005-02-25 14:15 Message: Logged In: YES user_id=888171 This is the way it is supposed to be according to the C99 specification. This is also an RFE already (905167). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1151648&group_id=599 |