public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/18857] New: MATMUL failing with ALLOCATED matrices, unless base indices given
@ 2004-12-06 18:58 paulthomas2 at wanadoo dot fr
  2004-12-06 21:29 ` [Bug libfortran/18857] " pinskia at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: paulthomas2 at wanadoo dot fr @ 2004-12-06 18:58 UTC (permalink / raw)
  To: gcc-bugs

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


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

end of thread, other threads:[~2005-07-15 20:50 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-06 18:58 [Bug libfortran/18857] New: MATMUL failing with ALLOCATED matrices, unless base indices given paulthomas2 at wanadoo dot fr
2004-12-06 21:29 ` [Bug libfortran/18857] " pinskia at gcc dot gnu dot org
2004-12-08 23:44 ` tobi at gcc dot gnu dot org
2005-04-19 18:51 ` [Bug fortran/18857] " tkoenig at gcc dot gnu dot org
2005-04-25 14:13 ` tobi at gcc dot gnu dot org
2005-04-25 15:35 ` paulthomas2 at wanadoo dot fr
2005-04-25 20:31 ` paulthomas2 at wanadoo dot fr
2005-04-25 20:47 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2005-04-26 12:56 ` paulthomas2 at wanadoo dot fr
2005-04-29  9:52 ` [Bug libfortran/18857] " paulthomas2 at wanadoo dot fr
2005-04-29 10:29 ` tobi at gcc dot gnu dot org
2005-04-29 14:59 ` paulthomas2 at wanadoo dot fr
2005-04-29 16:34 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2005-05-24 21:59 ` [Bug libfortran/18857] [4.0 only] " tkoenig at gcc dot gnu dot org
2005-07-08  1:37 ` mmitchel at gcc dot gnu dot org
2005-07-15 20:48 ` cvs-commit at gcc dot gnu dot org
2005-07-15 20:50 ` tkoenig at gcc dot gnu dot org
2005-07-15 20:50 ` tkoenig at gcc dot gnu dot org

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