public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/7895: Bit-field initialization incorrect after padding with :0
@ 2002-09-12  6:46 eckart
  0 siblings, 0 replies; only message in thread
From: eckart @ 2002-09-12  6:46 UTC (permalink / raw)
  To: gcc-gnats

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1651 bytes --]


>Number:         7895
>Category:       c
>Synopsis:       Bit-field initialization incorrect after padding with :0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 12 06:46:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jörg Eckart
>Release:        Reading specs from /app/unido-inf/sun4_56/gcc/2.95.2/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specsgcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
SunOS ls12so 5.8 Generic_108528-12 sun4u sparc SUNW,Sun-Blade-1000
>Description:
The bit-field A::c in the example code should be initialized with 3 (instead of 0). When omitting the padding field or specifying another padding width than 0, c is initialized correctly. Further accesses to c are also done correctly.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bitfield.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bitfield.c"

I2luY2x1ZGUgPHN0ZGlvLmg+CgpzdHJ1Y3QgQQp7CiAgdW5zaWduZWQgYToxOwogIHVuc2lnbmVk
IGI6MjsKICB1bnNpZ25lZCA6MDsKICB1bnNpZ25lZCBjOjM7CiAgdW5zaWduZWQgOjI7CiAgdW5z
aWduZWQgZDo0Owp9IGdsb2JBID0geyAxLCAyLCAzLCA0IH07Cgp2b2lkIG91dChzdHJ1Y3QgQSAq
YSkKewogIHByaW50ZigiJXUsICV1LCAldSwgJXVcbiIsIGEtPmEsIGEtPmIsIGEtPmMsIGEtPmQp
Owp9CgppbnQgbWFpbigpCnsKICAvLyBUZXN0IDE6IExvY2FsIGluaXRpYWxpemF0aW9uOgogIHN0
cnVjdCBBIGxvY0E9eyAxLCAyLCAzLCA0IH07CgogIG91dCgmbG9jQSk7IC8vIDEsIDIsIDMsIDQK
CiAgb3V0KCZnbG9iQSk7IC8vIDEsIDIsIDMsIDQKCiAgcmV0dXJuIDA7Cn0K


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-12 13:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-12  6:46 c/7895: Bit-field initialization incorrect after padding with :0 eckart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).