#709 Array of function pointers doesn't allow void in param. list

closed-fixed
5
2013-05-25
2004-02-13
No

void (* farray1[10]) (void); /* BUG: W_NONRENT_ARGS */
void (* farray2[10]) (void) reentrant; /* BUG: too few params */
void (* farray3[10]) (); /* o.k. */

void
foo (void)
{
farray1[2]();
farray2[2]();
farray3[2]();
}

fptr.c:8: warning: Functions called via pointers must be 'reentrant'
to take arguments
fptr.c:9: error: too few parameters

Discussion

  • Erik Petrich

    Erik Petrich - 2004-02-15
    • milestone: --> fixed
    • assigned_to: nobody --> epetrich
    • status: open --> closed-fixed
     
  • Erik Petrich

    Erik Petrich - 2004-02-15

    Logged In: YES
    user_id=635249

    Fixed in src/SDCCsymt.c 1.178

     

Log in to post a comment.