From: SourceForge.net <no...@so...> - 2010-07-23 12:28:15
|
Bugs item #3027957, was opened at 2010-07-11 06:05 Message generated for change (Comment added) made by maartenbrock You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3027957&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Icode generator >Group: fixed >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Steven J Tucker (atarimax) >Assigned to: Maarten Brock (maartenbrock) Summary: Subscript of pointer cast from const causes internal error. Initial Comment: The following code causes an internal code generator error. File attached. sdcc -mz80 --no-std-crt0 crash.c crash.c:4: error 9: FATAL Compiler Internal Error in file 'SDCCicode.c' line number '2914' : code generator internal error Contact Author with source code Internal error: validateLink failed in DCL_TYPE(ptr) @ SDCCicode.c:2863: expected DECLARATOR, got SPECIFIER sdcc -v SDCC : mcs51/gbz80/z80/ds390/pic16/pic14/TININative/ds400/hc08 2.9.7 # (Jul 10 2010) (Linux) >cat crash.c void main( void ) { ((unsigned char *)0xF000)[100] = 0x00; } ---------------------------------------------------------------------- >Comment By: Maarten Brock (maartenbrock) Date: 2010-07-23 14:28 Message: Fixed in SDCC 2.9.7 #5884. ---------------------------------------------------------------------- Comment By: Philipp Krause (spth) Date: 2010-07-18 18:07 Message: This bug is not Z80-specific. It affects all ports. Philipp ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3027957&group_id=599 |