From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27662 invoked by alias); 15 Jul 2010 08:32:19 -0000 Received: (qmail 27618 invoked by uid 48); 15 Jul 2010 08:32:03 -0000 Date: Thu, 15 Jul 2010 08:32:00 -0000 Subject: [Bug middle-end/44945] New: [4.6 Regression] FAIL: gfortran.dg/char_array_structure_constructor.f90 X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dominiq at lps dot ens dot fr" 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-07/txt/msg01545.txt.bz2 At revision 162192, I get with -m32: FAIL: gfortran.dg/char_array_structure_constructor.f90 -O3 -fomit-frame-pointer execution test The failure is a "Bus error" with -O2 and -O3, and requires -fomit-frame-pointer. Also the failure goes away when Revision 162148 was OK and the test passes on powerpc-apple-darwin9 (r162194). The backtrace is Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000000 0x000adddc in __gfortran_compare_string (len1=4, s1=0x0, len2=4, s2=0x1f40 "wxyzabcdefgh") at intrinsics/string_intrinsics_inc.c:93 93 res = memcmp (s1, s2, ((len1 < len2) ? len1 : len2) * sizeof (CHARTYPE)); (gdb) bt #0 0x000adddc in __gfortran_compare_string (len1=4, s1=0x0, len2=4, s2=0x1f40 "wxyzabcdefgh") at intrinsics/string_intrinsics_inc.c:93 #1 0x00001e31 in main () -- Summary: [4.6 Regression] FAIL: gfortran.dg/char_array_structure_constructor.f90 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dominiq at lps dot ens dot fr GCC build triplet: x86_64-apple-darwin10 GCC host triplet: x86_64-apple-darwin10 GCC target triplet: x86_64-apple-darwin10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44945