public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/61775] Allocatable array initialized by implied-do loop array constructor gives invalid memory reference
Date: Thu, 10 Jul 2014 20:34:00 -0000	[thread overview]
Message-ID: <bug-61775-4-2zDlLAF9Tm@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-61775-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61775

--- Comment #2 from kargl at gcc dot gnu.org ---
(In reply to kargl from comment #1)
> Whatever the issue was, it appears to be fixed in HEAD.
> 
> troutmask:sgk[205] gfc4x -o z h.f90
> troutmask:sgk[206] ./z
>    10000.0000
> troutmask:sgk[207] gfc49 -o z h.f90
> troutmask:sgk[208] ./z
> 
> Program received signal SIGSEGV: Segmentation fault - invalid memory
> reference.

I take it back.  It is broken with optimizations.

troutmask:sgk[213] gfc4x -o z -O -fcheck=all h.f90 && ./z
At line 6 of file h.f90
Fortran runtime error: Index '10000' of dimension 1 of array 'x' above upper
bound of 1
Segmentation fault (core dumped)


  parent reply	other threads:[~2014-07-10 20:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-10 17:02 [Bug fortran/61775] New: " robert.rosenberg at nrl dot navy.mil
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 [this message]
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-2zDlLAF9Tm@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: link
Be 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).