public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dominiq at lps dot ens dot fr" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/45128] New: Segmentation fault with -fwhole-file Date: Thu, 29 Jul 2010 13:50:00 -0000 [thread overview] Message-ID: <bug-45128-12313@http.gcc.gnu.org/bugzilla/> (raw) The following code (from pr40737) ! { dg-do compile } module testmod implicit none type VARIABLES_MAILLE real :: cell_var end type VARIABLES_MAILLE type (VARIABLES_MAILLE), pointer, dimension( :) :: Hydro_vars real, pointer, dimension(:) :: Ro end module testmod program TF_AD_SPLITTING_DRIVER_PLANE use testmod implicit none Ro => Hydro_vars(1:2)%cell_var end program gives a Segmentation fault when compiled with -fwhole-file. The backtrace is Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000018 0x00000001000d1d38 in gfc_trans_pointer_assignment (expr1=0x14191a3f0, expr2=0x141919960) at ../../work/gcc/fortran/trans-expr.c:4768 4768 gfc_add_modify (&lse.post, GFC_DECL_SPAN(decl), tmp); (gdb) bt #0 0x00000001000d1d38 in gfc_trans_pointer_assignment (expr1=0x14191a3f0, expr2=0x141919960) at ../../work/gcc/fortran/trans-expr.c:4768 #1 0x00000001000a9ae6 in trans_code (code=0x14191a960, cond=0x0) at ../../work/gcc/fortran/trans.c:1109 #2 0x00000001000c7bd2 in gfc_generate_function_code (ns=<value temporarily unavailable, due to optimizations>) at ../../work/gcc/fortran/trans-decl.c:4495 #3 0x000000010006b0bd in gfc_parse_file () at ../../work/gcc/fortran/parse.c:4253 #4 0x00000001000a496c in gfc_be_parse_file (set_yydebug=<value temporarily unavailable, due to optimizations>) at ../../work/gcc/fortran/f95-lang.c:241 #5 0x00000001006990da in toplev_main (argc=2, argv=0x7fff5fbfd9d8) at ../../work/gcc/toplev.c:945 #6 0x0000000100001154 in start () -- Summary: Segmentation fault with -fwhole-file Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dominiq at lps dot ens dot fr http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45128
next reply other threads:[~2010-07-29 13:50 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-07-29 13:50 dominiq at lps dot ens dot fr [this message] 2010-07-29 14:44 ` [Bug fortran/45128] Segmentation fault with -fwhole-file for subref_array_pointer burnus at gcc dot gnu dot org 2010-08-09 10:50 ` paul dot richard dot thomas at gmail dot com 2010-08-09 17:19 ` jvdelisle at gcc dot gnu dot org 2010-08-15 16:33 ` paul dot richard dot thomas at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-45128-12313@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).