Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#203 Function pointers with no args

closed-fixed
Johan Knol
5
2013-05-25
2001-10-31
Michael Hope
No

Grr. Limited sourceforge bug descriptions. See the
regression tests under funptr.c. Basically:

void callViaPtr(void (*fptr)(void))
{
(*fptr)();
}

throws a 'too few parameters' error. Adding (0) instead of
() works around it.

Discussion

  • Johan Knol
    Johan Knol
    2001-10-31

    • assigned_to: nobody --> johanknol
    • milestone: --> 100457
    • status: open --> closed-fixed
     
  • Johan Knol
    Johan Knol
    2001-10-31

    Logged In: YES
    user_id=63512

    fixed in SDCCsymt.c:1.108

     
  • Johan Knol
    Johan Knol
    2001-11-01

    • milestone: 100457 -->
    • status: closed-fixed --> open-later
     
  • Johan Knol
    Johan Knol
    2001-11-01

    Logged In: YES
    user_id=63512

    This obviously wasn't fixed for the z80 port. I made a
    temporary fix in SDCCsymt.c:1.110 but I don't like this at
    all. The dumptree clearly shows that the symbol declaration
    of fptr is missing for the z80 port. Has something to do
    with regparms.

     
  • Johan Knol
    Johan Knol
    2001-11-02

    Logged In: YES
    user_id=63512

    now fixed in SDCCsymt.c:1.113

     
  • Johan Knol
    Johan Knol
    2001-11-02

    • milestone: --> fixed
    • status: open-later --> closed-fixed