From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11164 invoked by alias); 6 Dec 2004 18:58:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 11141 invoked by uid 48); 6 Dec 2004 18:58:32 -0000 Date: Mon, 06 Dec 2004 18:58:00 -0000 From: "paulthomas2 at wanadoo dot fr" To: gcc-bugs@gcc.gnu.org Message-ID: <20041206185831.18857.paulthomas2@wanadoo.fr> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libfortran/18857] New: MATMUL failing with ALLOCATED matrices, unless base indices given X-Bugzilla-Reason: CC X-SW-Source: 2004-12/txt/msg00872.txt.bz2 List-Id: The below fails with CYGWIN_NT_5.1 + Windows XP (SP2) on AMD Athlon XP2600+ (M) assertion "a->base == 0" failed: file "../../../gcc-4.0- 20041205/libgfortran/generated/matmul_r8.c", line 157 Aborted (core dumped) This does not happen on my Athlon XP1700 machine, nor on a PIV. I have built the 20041205 cvs and tried various snapshots, all with the same result. !unless matmul line is substituted program test_matmul INTEGER, parameter :: n=2,m=2 real(kind=8), dimension(:,:),allocatable :: unity,x,w allocate(unity(N,N),x(N,M),w(N,M)) unity(:,1)=(/1,0/) ; x(:,1) =(/1,2/) unity(:,2)=(/0,1/) ; x(:,2) =(/3,4/) w=matmul(unity,x) !crashes !w(1:,1:)=matmul(unity(1:,1:),x(1:,1:)) !does not print *,all(w.eq.w) deallocate(unity,x,w) end program test_matmul -- Summary: MATMUL failing with ALLOCATED matrices, unless base indices given Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libfortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: paulthomas2 at wanadoo dot fr CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18857