Menu

#3542 zero-width bit-field doesn't work as first member

closed-fixed
None
other
5
2023-02-01
2023-02-01
No

A struct with a zero-width bit-field as first member doesn't work.

The test bug-1981238.c has one, but the the ASSERT in there testing it are commented out. The initialization fails in a rather bad way: No space is allocated for the whole initializer ( at least on stm8), so any subsequent objects would be initialized incorrectly, too. And on OpenBSD on PowerPC G4 we do get sporadic segfaults in the compiler.

Related

Bugs: #2643
Wiki: NGI0-Entrust-SDCC

Discussion

  • Philipp Klaus Krause

    • assigned_to: Philipp Klaus Krause
     
  • Philipp Klaus Krause

    Fixed in [r13848].

     

    Related

    Commit: [r13848]

  • Philipp Klaus Krause

    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB