This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/44945] New: [4.6 Regression] FAIL: gfortran.dg/char_array_structure_constructor.f90


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]