Menu

#1011 Internal error

closed-wont-fix
nobody
None
5
2013-05-25
2005-11-09
christopher
No

Hi,

Sorry, file is not attached in the previous message

I am using SDCC 4.0. The attached test case gives the
following internal error:

Internal error: validateLink failed in SPEC_NOUN(val-
>etype) @ k:\blrasdcc\src\sdcc\src\sdccsymt.c:2190:
expected SPECIFIER, got null-link

This code should only produce syntax error like
undeclared identifier 'r', with some warnings.

What is the reason to get an unexpected error during
compilation?.Is this a bug with the compiler.

Thanks in advance,
Chris

Discussion

  • christopher

    christopher - 2005-11-09

    Function pointer

     
  • Maarten Brock

    Maarten Brock - 2005-11-09
    • status: open --> pending
     
  • Maarten Brock

    Maarten Brock - 2005-11-09
    • milestone: --> non_bugs
    • status: pending --> pending-wont-fix
     
  • Maarten Brock

    Maarten Brock - 2005-11-09

    Logged In: YES
    user_id=888171

    Chris,

    You're way ahead of time. It took almost 4 years for SDCC to
    get from 2.3.0 to 2.5.0. At this rate it will take another 30
    years before SDCC is at 4.0.

    void p(void ((*f) (void ()))) // ?????

    You really know how to create totally unreadable source
    code. And what did you expect "void()" to mean? This is not
    shorthand for "void (*t)(void)".

    Besides, you get a perfect syntax error before the internal
    error. Why not show that too.
    May I suggest you to learn about typedef for function pointers
    and to stop using implicit "void" definitions. The next line
    compiles fine:

    void p(void (*f) (void (*t)(void)))

     
  • SourceForge Robot

    • status: pending-wont-fix --> closed-wont-fix
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 30 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.