#1686 Initializers for objects that have static storage duration

closed-fixed
7
2014-08-24
2010-09-22
No

The C99 standard, verse 1644: "All the expressions in an initializer for an object that has static storage duration shall be constant expressions
or string literals."

sdcc currently silently allows other initializers. It doesn't even give a warning.

sdcc should not allow these other initializers.

This bug prevents optimizations, such as RFE #3034739.

Philipp

Discussion

  • Philipp Klaus Krause

    • priority: 5 --> 7
     
  • Philipp Klaus Krause

    Increasing priority, since other tracker items are blocked on this.

    Philipp

     
  • Philipp Klaus Krause

    • labels: --> C-Front End
    • assigned_to: nobody --> spth
    • status: open --> closed-fixed
     
  • Philipp Klaus Krause

    Fixed in revision #7278.

    Philipp

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks