From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21001 invoked by alias); 11 Nov 2012 15:09:15 -0000 Received: (qmail 20974 invoked by uid 48); 11 Nov 2012 15:08:56 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/53824] ICE with ALLOCATE of coarrays Date: Sun, 11 Nov 2012 15:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Resolution Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-11/txt/msg00937.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53824 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Thomas Koenig 2012-11-11 15:08:55 UTC --- Applying the patch from http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189549 runs into another problem: ig25@linux-fd1f:~/Krempel/Co> gdb ~/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/f951 GNU gdb (GDB) 7.5 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/ig25/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/f951...done. (gdb) r coarray_allocate_1.f90 Starting program: /home/ig25/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/f951 coarray_allocate_1.f90 coarray_allocate_1.f90:20.31: type(Domain),allocatable :: D[:,:,:] 1 Schwerwiegender Fehler: Coarray bei (1) ausgeschaltet, -fcoarray= zum Einschalten verwenden [Inferior 1 (process 1073) exited with code 01] (gdb) r ^CQuity_allocate_1.f90 (gdb) q ig25@linux-fd1f:~/Krempel/Co> gdb ~/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/f951 GNU gdb (GDB) 7.5 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/ig25/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/f951...done. (gdb) r -fcoarray=single coarray_allocate_1.f90 Starting program: /home/ig25/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/f951 -fcoarray=single coarray_allocate_1.f90 jac Program received signal SIGSEGV, Segmentation fault. 0x000000000058ddd5 in gfc_build_array_ref (base=0x7ffff5df8968, offset=0x0, decl=0x0) at ../../4-7/gcc/fortran/trans.c:341 341 STRIP_TYPE_NOPS (offset); (gdb) bt #0 0x000000000058ddd5 in gfc_build_array_ref (base=0x7ffff5df8968, offset=0x0, decl=0x0) at ../../4-7/gcc/fortran/trans.c:341 #1 0x0000000000590936 in gfc_conv_descriptor_ubound (desc=, dim=) at ../../4-7/gcc/fortran/trans-array.c:364 #2 0x0000000000591b07 in gfc_conv_descriptor_ubound_get (dim=0x0, desc=0x7ffff5d03c80) at ../../4-7/gcc/fortran/trans-array.c:377 #3 get_full_array_size (block=0x7fffffffd2c0, decl=0x7ffff5d03c80, rank=) at ../../4-7/gcc/fortran/trans-array.c:7141 #4 0x0000000000598e40 in structure_alloc_comps (der_type=0x1496a90, decl=0x7ffff5d03c80, dest=dest@entry=0x0, rank=0, purpose=purpose@entry=2) at ../../4-7/gcc/fortran/trans-array.c:7313 #5 0x000000000059972f in gfc_nullify_alloc_comp (der_type=, decl=, rank=) at ../../4-7/gcc/fortran/trans-array.c:7618 #6 0x000000000059a0cb in gfc_array_allocate (se=, expr=0x14c44b0, status=0x0, errmsg=0x0, errlen=0x0, label_finish=0x0, expr3_elem_size=0x7ffff5e0e840, nelems=0x7fffffffd798, expr3=0x0) at ../../4-7/gcc/fortran/trans-array.c:5147 #7 0x00000000005d77f2 in gfc_trans_allocate (code=) at ../../4-7/gcc/fortran/trans-stmt.c:4849 #8 0x000000000058ee58 in trans_code (code=0x14a19e0, cond=0x0) at ../../4-7/gcc/fortran/trans.c:1462 #9 0x00000000005ab3f8 in gfc_generate_function_code (ns=) at ../../4-7/gcc/fortran/trans-decl.c:5344 #10 0x0000000000550dd7 in translate_all_program_units (main_in_tu=true, gfc_global_ns_list=0x1493120) at ../../4-7/gcc/fortran/parse.c:4455 #11 gfc_parse_file () at ../../4-7/gcc/fortran/parse.c:4668 #12 0x000000000058b256 in gfc_be_parse_file () at ../../4-7/gcc/fortran/f95-lang.c:250 #13 0x0000000000838f30 in compile_file () at ../../4-7/gcc/toplev.c:557 #14 do_compile () at ../../4-7/gcc/toplev.c:1938 #15 toplev_main (argc=3, argv=0x7fffffffdca8) at ../../4-7/gcc/toplev.c:2014 #16 0x00007ffff643723d in __libc_start_main () from /lib64/libc.so.6 #17 0x00000000004e6f41 in _start () at ../sysdeps/x86_64/elf/start.S:113 so it seems more than this patch is needed to fix this. Therefore, no backport to 4.7 (since it is fixed on trunk). Closing.