From: SourceForge.net <no...@so...> - 2003-09-14 17:02:14
|
Bugs item #462971, was opened at 2001-09-19 14:37 Message generated for change (Comment added) made by epetrich You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=462971&group_id=599 Category: C-Front End >Group: fixed >Status: Closed >Resolution: Fixed Priority: 2 Submitted By: Bernhard Held (bernhardheld) >Assigned to: Erik Petrich (epetrich) Summary: Unable to reduce offsetof() to constant Initial Comment: #define offsetof(TYPE, MEMBER) ((unsigned) &((TYPE *)0)->MEMBER) struct STR { char c1, c2; }; foo() { code int i = offsetof(struct STR, c2); return i; } SDCC: error *** Constant Expected Found Variable ---------------------------------------------------------------------- >Comment By: Erik Petrich (epetrich) Date: 2003-09-14 12:02 Message: Logged In: YES user_id=635249 Fixed in src/SDCCast.c 1.188 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=462971&group_id=599 |