#531 Cannot handle array of pointers to certain functions

closed-fixed
5
2013-05-25
2003-06-10
No

/* 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)
*/

Discussion

  • Erik Petrich

    Erik Petrich - 2004-02-08
    • labels: 355283 --> C-Front End
    • milestone: --> fixed
    • assigned_to: nobody --> epetrich
    • status: open --> closed-fixed
     
  • Erik Petrich

    Erik Petrich - 2004-02-08

    Logged In: YES
    user_id=635249

    Fixed with src/SDCCast.c 1.221 and src/SDCC.y 1.89

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks