From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22177 invoked by alias); 3 Feb 2011 20:16:48 -0000 Received: (qmail 22167 invoked by uid 22791); 3 Feb 2011 20:16:47 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Thu, 03 Feb 2011 20:16:43 +0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/47574] internal compiler error: in build2_stat, at tree.c:3795 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: dominiq at lps dot ens.fr X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: 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 Date: Thu, 03 Feb 2011 20:16:00 -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 X-SW-Source: 2011-02/txt/msg00557.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47574 --- Comment #13 from Dominique d'Humieres 2011-02-03 20:16:40 UTC --- Further reduced test case ! { dg-do compile } SUBROUTINE EXCH2_UV_AGRID_3D_RL( uPhi, vPhi, myNz ) IMPLICIT NONE INTEGER, parameter :: sNx=32, sNy=32, OLx=4, OLy=4 INTEGER myNz Real*8 uPhi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,myNz,3,1) Real*8 vPhi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,myNz,3,1) INTEGER i,j,k,bi,bj Real*8 uLoc(1-OLx:sNx+OLx,1-OLy:sNy+OLy) Real*8 vLoc(1-OLx:sNx+OLx,1-OLy:sNy+OLy) Real*8 negOne negOne = 1. DO k = 1,myNz DO j = 1-OLy,sNy+OLy DO i = 1-OLx,sNx+OLx uLoc(i,j) = uPhi(i,j,k,bi,bj) vLoc(i,j) = vPhi(i,j,k,bi,bj) ENDDO ENDDO DO j = 1-OLy,sNy+OLy DO i = 1,OLx uPhi(1-i,j,k,bi,bj) = vLoc(1-i,j) vPhi(1-i,j,k,bi,bj) = uLoc(1-i,j)*negOne ENDDO ENDDO ENDDO END It gives an ICE at revision 167172, but not at revision 167173, hence a duplicate of pr46664. Note that revision 167173 did not add a test case. Should not the above test be added to the test suite before I close this PR as a duplicate?