public inbox for
help / color / mirror / Atom feed
Subject: ada/9087: Component_Size for packed array returns wrong values
Date: Sat, 28 Dec 2002 15:26:00 -0000	[thread overview]
Message-ID: <> (raw)

>Number:         9087
>Category:       ada
>Synopsis:       Component_Size for packed array returns wrong values
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 28 15:26:00 PST 2002
>Release:        gcc version 3.4 20021220 (experimental)
By applying a pragma Pack to an unconstrained array of (e.g. boolean) the output of Component_Size for the array's subtype is

According to this, the calculated 'Size for the whole array is
wrong as well.
Compile the attached file. As you can see the array is really packed (the elements 1 and 5 are within the same byte), but the read-access to Component_Size returned the wrong value, 8. It should return 1 here.

Content-Type: application/octet-stream; name="karl.adb"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="karl.adb"


             reply	other threads:[~2002-12-28 23:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-28 15:26 adi [this message]
2003-05-13  0:16 Dara Hazeghi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).