This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/53760] attribute packed doesn't pack inner structs
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 25 Jun 2012 06:51:12 +0000
- Subject: [Bug c/53760] attribute packed doesn't pack inner structs
- Auto-submitted: auto-generated
- References: <bug-53760-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53760
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-06-25 06:51:12 UTC ---
It is not a useless limitation. While you can't take address of a bitfield,
you can take address of a struct field, even when it contains only bitfields.