---
** [bugs:#144] C11 static union implicit initialization**
**Status:** closed-wont-fix
**Group:** Bug
**Created:** Mon Mar 10, 2014 10:10 AM UTC by Gabriel Kerneis
**Last Updated:** Mon Mar 10, 2014 10:10 AM UTC
**Owner:** Gabriel Kerneis
C99 says the following about static union implicit initialization: "the first
named member is initialized (recursively) according to these
rules."
C11 has added the following to restriction: "and any padding is initialized to
zero bits".
CIL follows C99 but not C11 here. The difference is not observable for global
variables (since the compiler will fulfill the padding condition anyway), but
it will impact local variables with an incomplete initialiazer list. Test-case
attached.
Leaving this as wont-fix because we don't plan to support C11.
---
Sent from sourceforge.net because cil-users@lists.sourceforge.net is subscribed
to https://sourceforge.net/p/cil/bugs/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/cil/admin/bugs/options. Or, if this is a mailing
list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users