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

#1899 Anonymous structures and unions accepted in C89 and C99 mode

open
nobody
Front-end
3
2013-05-25
2011-12-22
No

sdcc currently accepts anonymous structures and unions in C89/C90 and C99 modes. IMO sdcc should at least issue a warning here: Anonymous structures and unions are a C11 feature. To reproduce change the #pragma std_c11 in support/regression/tests/gcc-torture-execute-anon-1.c to #pragma std_c89. I observed this problem in sdcc revision #7121, but it probably has been in sdcc for some time.

Philipp

Discussion

    • labels: --> C-Front End
     
    • Category: --> Front-end
    • Priority: 4 --> 3