Menu

#1831 Same qualifier occouring mroe than once

closed-fixed
Ben Shi
Front-end
2
2015-05-13
2011-08-29
No

The same qualifier occouring more than once specifier-qualifier-list is allowed by sdcc in all compilation modes.
This means that in this respect sdcc always behaves according to the C99 standard (verse 1479: "If the same qualifier appears more than once in the same specifier-qualifier-list, either directly or via one or more typedefs, the behavior is the same as if it appeared only once.").

On the other hand the ISO C90 standard (which, AFAIK is the same as the asni standard in this respect) does not allow this ("The same type qualifier shall not appear more than once in the same specifier list or qualifier list, either directly or via one or more typedefs.").

Thus the current behaviour is a bug when compiling using --std-c89 (though not a serious one).

Philipp

Discussion

  • Ben Shi

    Ben Shi - 2015-05-13

    Fixed in reversion #9231.

     
  • Ben Shi

    Ben Shi - 2015-05-13
    • status: open --> closed-fixed
    • assigned_to: Ben Shi
    • Category: --> Front-end
     

Log in to post a comment.