From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21307 invoked by alias); 23 Apr 2012 16:30:36 -0000 Received: (qmail 21124 invoked by uid 22791); 23 Apr 2012 16:30:07 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Apr 2012 16:29:54 +0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/53086] [4.8 Regression] 416.gamess in SPEC CPU 2006 miscompiled Date: Mon, 23 Apr 2012 16:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: Status Last reconfirmed Resolution Ever Confirmed Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-04/txt/msg01974.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53086 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Last reconfirmed| |2012-04-23 Resolution|INVALID | Ever Confirmed|0 |1 --- Comment #5 from H.J. Lu 2012-04-23 16:28:33 UTC --- (In reply to comment #4) > > From F2003 standard one finds on page 99: > > The form variable-name (explicit-shape-spec-list) declares variable-name > to have the DIMENSION attribute and specifies the array properties that > apply. > > My interpretation is that > > COMMON /FMCOM / X(1) > > declares X to have 1 element while > > PARAMETER (MEMSIZ= 80 000 000) > COMMON /FMCOM / X(MEMSIZ) > > has 80000000 elements. The above appears to be a common > F77 idiom for "dynamic" memory management where the > programmer is abusing the storage association of element > x(1). I was told that it was allowed in F77.