From: SourceForge.net <no...@so...> - 2010-07-25 20:01:54
|
Bugs item #3034400, was opened at 2010-07-25 22:01 Message generated for change (Tracker Item Submitted) made by borutr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3034400&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: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Borut Ražem (borutr) Assigned to: Nobody/Anonymous (nobody) Summary: cannot use generic pointer to initialize <null> Initial Comment: sdcc throws the error: error 151: cannot use generic pointer to initialize <null> when compiling the following line: char * correct() { return (char __code *) 0x1234; } This bug is a side effect of fixing bug #3027957: "Subscript of pointer cast from const causes internal error." If I revert the change in SDCCgluec, function aopLiteralLong(), the line compiles without error. $ ../../sdcc.build/bin/sdcc -v SDCC : mcs51/gbz80/z80/ds390/pic16/pic14/TININative/ds400/hc08 2.9.7 #5890 (Jul 25 2010) (Linux) Borut ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3034400&group_id=599 |