From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7337 invoked by alias); 15 Apr 2007 00:36:09 -0000 Received: (qmail 7304 invoked by uid 48); 15 Apr 2007 00:36:00 -0000 Date: Sun, 15 Apr 2007 00:36:00 -0000 Message-ID: <20070415003600.7303.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/31541] [4.3 Regression] cannot take address of bit field 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: 2007-04/txt/msg01026.txt.bz2 ------- Comment #4 from pinskia at gcc dot gnu dot org 2007-04-15 01:36 ------- And the reason is: /* See if we can use an ordinary integer mode for a bit-field. Conditions are: a fixed size that is correct for another mode and occupying a complete byte or bytes on proper boundary. */ So we have to check DECL_BIT_FIELD_TYPE also. I have a patch. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31541