This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12742] New: Type alignment is lost if const is added to typedef
- From: "William dot Munns at arm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Oct 2003 09:59:56 -0000
- Subject: [Bug c/12742] New: Type alignment is lost if const is added to typedef
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12742
Summary: Type alignment is lost if const is added to typedef
Product: gcc
Version: 3.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: William dot Munns at arm dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
typedef int __attribute__ ((aligned(64))) int_64;
typedef const int cint;
typedef cint __attribute__((aligned(64))) cint_64;
typedef const int_64 intc_64;
Loses the alignment for the types intc_64 and cint_64