Menu

#3255 Internal error on _Generic

closed-fixed
None
Front-end
5
2022-04-10
2021-06-15
No

The following fails to compile:

int *p;

void f(void)
{
    _Generic(p, int * : 1, long * : 2);
}

Error message:

Internal error: validateLink failed in SPEC_NOUN(type) @ SDCCast.c:5431: expected SPECIFIER, got DECLARATOR

Related

Feature Requests: #749
Wiki: SDCC-STD-UX

Discussion

  • Deqing Sun

    Deqing Sun - 2021-09-29

    Need to use this feature as well. Wish it get fixed soon.

     
  • Philipp Klaus Krause

    • status: open --> closed-fixed
    • assigned_to: Philipp Klaus Krause
     
  • Philipp Klaus Krause

    Fixed in [r13377].

     

    Related

    Commit: [r13377]


Log in to post a comment.

MongoDB Logo MongoDB