From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8700 invoked by alias); 4 May 2010 17:27:30 -0000 Received: (qmail 8628 invoked by uid 48); 4 May 2010 17:27:16 -0000 Date: Tue, 04 May 2010 17:27:00 -0000 Message-ID: <20100504172716.8627.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/43976] warning about increased alignment during casting printed even though variable is properly aligned In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-05/txt/msg00350.txt.bz2 ------- Comment #1 from pinskia at gcc dot gnu dot org 2010-05-04 17:27 ------- I think the warning is correct as the resulting type of &f.c is a pointer to an array and that array is of type char[4] which has an alignment of 1. Yes f.c has an alignment of 4 but the array type has an alignment of 1. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |middle-end http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43976