From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18860 invoked by alias); 29 Aug 2013 10:48:49 -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 18833 invoked by uid 48); 29 Aug 2013 10:48:46 -0000 From: "strasbur at chkw386 dot ch.pwr.wroc.pl" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/58270] New: Wrong code accessing array elements Date: Thu, 29 Aug 2013 10:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.7.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: strasbur at chkw386 dot ch.pwr.wroc.pl 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 cf_gcchost cf_gcctarget attachments.created 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-08/txt/msg01530.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58270 Bug ID: 58270 Summary: Wrong code accessing array elements Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: critical Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: strasbur at chkw386 dot ch.pwr.wroc.pl Host: i386-pc-linux Target: i386-pc-linux Created attachment 30717 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30717&action=edit Isolated code giving wrong results Array elements are accessed incorretly, if the array is passed in a global structure. This bug exists in 4.6 and 4.7 up to 4.7.2, no info about newer 4.7, 4.8 and development.