From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20424 invoked by alias); 29 Nov 2013 09:52:01 -0000 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 Received: (qmail 20403 invoked by uid 48); 29 Nov 2013 09:51:57 -0000 From: "jan.smets@alcatel-lucent.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/59338] New: error: position plus size exceeds size of referenced object in BIT_FIELD_REF Date: Fri, 29 Nov 2013 09:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jan.smets@alcatel-lucent.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-11/txt/msg02986.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59338 Bug ID: 59338 Summary: error: position plus size exceeds size of referenced object in BIT_FIELD_REF Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: jan.smets@alcatel-lucent.com minimal.i: In function 'test': minimal.i:20:6: error: position plus size exceeds size of referenced object in BIT_FIELD_REF void test(void) ^ BIT_FIELD_REF <*qResp, 8, 32> minimal.i:23:28: note: in statement if (qResp->u.l[0].More == 0) ^ D.1802 = BIT_FIELD_REF <*qResp, 8, 32>; minimal.i:20:6: internal compiler error: verify_gimple failed void test(void) ^ typedef enum { XYZZY, } enumType; typedef struct { unsigned char More : 1; } tResp; typedef struct { enumType QueryType; union { tResp l[0]; } u; } tQResp; void test(void) { tQResp *qResp = (0); if (qResp->u.l[0].More == 0) return; }