Menu

#110 No support for compound literals

None
closed
nobody
None
5
2022-04-14
2017-08-25
No

ISO C99 supports compound literals. SDCC doesn't.
Example below:

struct _s { int a; };
struct _s *p = &(struct _s){0};

char *t = (char[10]){0}+10;

Is it planned?

Discussion

  • Philipp Klaus Krause

    SDCC aims for standard-compliance, and has been improving in standard-compliance substantially in recent years.
    However, AFAIK, currently no developer is working on compound literals, so support is unlikely to arrive for SDCC 3.7.0.

    Philipp

     
  • Benedikt Freisen

    • status: open --> closed
    • Group: -->
     
  • Benedikt Freisen

    Yes, it is planned. Progress is tracked in [feature-requests:#332].

     

    Related

    Feature Requests: #332


Log in to post a comment.

MongoDB Logo MongoDB