public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/61775] New: Allocatable array initialized by implied-do loop array constructor gives invalid memory reference
@ 2014-07-10 17:02 robert.rosenberg at nrl dot navy.mil
  2014-07-10 20:29 ` [Bug fortran/61775] " kargl at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: robert.rosenberg at nrl dot navy.mil @ 2014-07-10 17:02 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-12 11:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-10 17:02 [Bug fortran/61775] New: Allocatable array initialized by implied-do loop array constructor gives invalid memory reference 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
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

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).