[Bug c/12742] New: Type alignment is lost if const is added to typedef

William dot Munns at arm dot com gcc-bugzilla@gcc.gnu.org
Thu Oct 23 10:02:00 GMT 2003


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



More information about the Gcc-bugs mailing list