public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "david.sagan at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/51904] New: Internal Compiler Error on size function evaluation Date: Thu, 19 Jan 2012 15:08:00 -0000 [thread overview] Message-ID: <bug-51904-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51904 Bug #: 51904 Summary: Internal Compiler Error on size function evaluation Classification: Unclassified Product: gcc Version: 4.6.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: david.sagan@gmail.com The following program produces an "internal compiler error" in 4.6.3. gcc 4.5 does not show the bug: subroutine qp_draw_polyline_basic (x) implicit none real :: x(:), f f = 0 print *, size(f*x) end subroutine Result: mc66:~/Bmad/bmad_dist/bug> uname -a Darwin mc66.lns.cornell.edu 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 mc66:~/Bmad/bmad_dist/bug> gfortran --version GNU Fortran (GCC) 4.6.2 mc66:~/Bmad/bmad_dist/bug> gfortran -c bug.f90 f951: internal compiler error: Segmentation fault Of course the workaround is easy: Just replace "size(f*x)" with "size(x)".
next reply other threads:[~2012-01-19 15:04 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-01-19 15:08 david.sagan at gmail dot com [this message] 2012-01-19 16:38 ` [Bug fortran/51904] [4.6/4.7 Regression] ICE on SIZE " burnus at gcc dot gnu.org 2012-01-19 17:11 ` burnus at gcc dot gnu.org 2012-01-19 18:18 ` jakub at gcc dot gnu.org 2012-01-19 20:47 ` burnus at gcc dot gnu.org 2012-01-19 22:30 ` burnus at gcc dot gnu.org 2012-01-19 22:34 ` burnus 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-51904-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).