From: SourceForge.net <no...@so...> - 2004-02-08 08:54:44
|
Bugs item #751859, was opened at 2003-06-10 06:20 Message generated for change (Comment added) made by epetrich You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=751859&group_id=599 >Category: C-Front End >Group: fixed >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Vladimir Támara Patiño (vtamara) >Assigned to: Erik Petrich (epetrich) Summary: Cannot handle array of pointers to certain functions Initial Comment: /* Cannot handle array of pointers to certain functions * * $ sdcc -c funpvoid.c * funpvoid.c:12: warning: Functions called via pointers must be 'reentrant' to take arguments * Caught signal 11: SIGSEGV * */ extern int (*f[4])(int) reentrant; void g() { int t; t=f[0](0); } /* It is possible to compile when the value returned is not assigned i.e * f[0](0) instead of t=f[0](0) */ ---------------------------------------------------------------------- >Comment By: Erik Petrich (epetrich) Date: 2004-02-08 02:54 Message: Logged In: YES user_id=635249 Fixed with src/SDCCast.c 1.221 and src/SDCC.y 1.89 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=751859&group_id=599 |