public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "robert.rosenberg at nrl dot navy.mil" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/61775] New: Allocatable array initialized by implied-do loop array constructor gives invalid memory reference Date: Thu, 10 Jul 2014 17:02:00 -0000 [thread overview] Message-ID: <bug-61775-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61775 Bug ID: 61775 Summary: Allocatable array initialized by implied-do loop array constructor gives invalid memory reference Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: robert.rosenberg at nrl dot navy.mil Created attachment 33104 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33104&action=edit initializes allocatable array with implied-do loop array constructor Received an 'invalid memory reference' run time error from gfortran code that initializes an allocatable array with an implied-do loop array constructor. Runs fine for Intel and Cray compilers, but fails for both GNU and PGI compilers. program pi real , allocatable :: x(:) integer :: n n = 10000 x = [ (i,i=1,n) ] print*,x(n) end
next reply other threads:[~2014-07-10 17:02 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-07-10 17:02 robert.rosenberg at nrl dot navy.mil [this message] 2014-07-10 20:29 ` [Bug fortran/61775] " kargl at gcc dot gnu.org 2014-07-10 20:34 ` kargl at gcc dot gnu.org 2014-07-10 20:37 ` dominiq at lps dot ens.fr 2014-07-11 20:38 ` mikael at gcc dot gnu.org 2014-07-12 11:44 ` dominiq at lps dot ens.fr
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-61775-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).