From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5713 invoked by alias); 10 Jul 2014 17:02:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 5578 invoked by uid 48); 10 Jul 2014 17:02:14 -0000 From: "robert.rosenberg at nrl dot navy.mil" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: robert.rosenberg at nrl dot navy.mil X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-07/txt/msg00662.txt.bz2 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