public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "sgm at objexx dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/50585] New: ICE with assumed length character array argument Date: Sat, 01 Oct 2011 07:36:00 -0000 [thread overview] Message-ID: <bug-50585-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50585 Bug #: 50585 Summary: ICE with assumed length character array argument Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: sgm@objexx.com Compiling these 2 routines in the same source file with gfortran -c SUBROUTINE SUB1( str ) IMPLICIT NONE CHARACTER(len=*) :: str(2) CALL SUB2( str(1)(:3) ) END SUBROUTINE SUB1 SUBROUTINE SUB2( str ) IMPLICIT NONE CHARACTER(*) :: str END SUBROUTINE SUB2 gives this ICE: f951: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://bugzilla.redhat.com/bugzilla> for instructions. with gfortran 4.6.1 on Fedora 15 (x64) and with MinGW on Win32. The problem was also observed on 4.6.0 on Fedora 15 but was not seen on 4.5.x. The ICE does not occur if any of these are true: -fno-whole-file is used The routines are in separate files The str array is changed to a scalar The str length is changed to a constant
next reply other threads:[~2011-10-01 7:36 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-10-01 7:36 sgm at objexx dot com [this message] 2011-10-01 9:56 ` [Bug fortran/50585] [4.6/4.7 Regression] " janus at gcc dot gnu.org 2011-10-01 10:04 ` janus at gcc dot gnu.org 2011-10-01 10:10 ` janus at gcc dot gnu.org 2011-10-01 10:15 ` dominiq at lps dot ens.fr 2011-10-01 10:25 ` janus at gcc dot gnu.org 2011-10-01 11:25 ` janus at gcc dot gnu.org 2011-10-01 11:42 ` janus at gcc dot gnu.org 2011-10-01 12:13 ` janus at gcc dot gnu.org 2011-10-07 21:01 ` janus at gcc dot gnu.org 2011-10-07 21:24 ` janus at gcc dot gnu.org
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-50585-4@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).