From: SourceForge.net <no...@so...> - 2003-10-02 16:39:34
|
Bugs item #814548, was opened at 2003-09-29 20:34 Message generated for change (Comment added) made by stsp You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=814548&group_id=599 Category: None Group: fixed Status: Closed Resolution: Fixed Priority: 5 Submitted By: Stas Sergeev (stsp) Assigned to: Nobody/Anonymous (nobody) Summary: Internal Error when the switch arg is a constant Initial Comment: Hi. The following program (attached), compilled with the newest sdcc from CVS, gives an Internal Error message. $ sdcc -mmcs51 --nojtbound int_err.c Internal error: validateOpType failed in OP_USES(IC_JTCOND (ic)) @ SDCCcse.c:1740: expected symbol, got value Program: --- int main() { switch (2) { case 3: return 3; case 2: return 2; case 1: return 1; } return 0; } --- This is a just another "educational" bug, i.e. the severity is nearly zero, but is probably worth fixing anyway:) ---------------------------------------------------------------------- >Comment By: Stas Sergeev (stsp) Date: 2003-10-02 20:39 Message: Logged In: YES user_id=501371 Just confirming that it is now working. Thanks guys. ---------------------------------------------------------------------- Comment By: Erik Petrich (epetrich) Date: 2003-10-01 11:34 Message: Logged In: YES user_id=635249 Completed fix in src/SDCCicode.c 1.168 ("Initializer element is not constant" was a result of attempting to use setOperandType (cond, UCHARTYPE) when cond was literal, leaving it with a type but no value) ---------------------------------------------------------------------- Comment By: Bernhard Held (bernhardheld) Date: 2003-09-30 19:04 Message: Logged In: YES user_id=203539 The internal error is fixed in SDCCcse.c 1.84. But there are still 2 errors "Initializer element is not constant". ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=814548&group_id=599 |