First Last Prev Next    No search results available
Details
: Objects of arbitrary type can be bitfields
Bug#: 1981
: tools
: gnat
Status: ASSIGNED
Resolution:
: Other
: Linux
: trunk
: P2
: enhancement
: ---

:
:
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Duncan Sands <baldrick@free.fr>
Assigned To: Unassigned LLVM Bugs <unassignedbugs@nondot.org>
:

Attachments


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2008-02-04 14:20
The Ada front-end expects the back-end to handle bitfields of
arbitrary type.  In the following example, a bitfield of struct type:

package Bit_Struct is
   type R is record
      A : Integer;
      B : String (1 .. 3);
   end record;

   type S is record
      An_R : R;
   end record;
   for S use record
      An_R at 0 range 4 .. 60;
   end record;

   An_S : constant S := (An_R => (A => 0, B => "Yo!"));
end;

First Last Prev Next    No search results available