[Bug fortran/48462] [4.6/4.7 Regression] matmul Segmentation Fault with Allocatable Array

2011-04-05 Thread Joost.VandeVondele at pci dot uzh.ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48462

Joost VandeVondele Joost.VandeVondele at pci dot uzh.ch changed:

   What|Removed |Added

   Keywords||wrong-code
  Known to work||4.5.0
Summary|matmul Segmentation Fault   |[4.6/4.7 Regression] matmul
   |with Allocatable Array  |Segmentation Fault with
   ||Allocatable Array
  Known to fail||4.6.1, 4.7.0

--- Comment #1 from Joost VandeVondele Joost.VandeVondele at pci dot uzh.ch 
2011-04-05 15:38:21 UTC ---
so, the segfault is at run time. 4.5 is doing fine.

==14586== Invalid read of size 8
==14586==at 0x4EC9AD1: _gfortran_matmul_r8 (matmul_r8.c:284)
==14586==by 0x400877: main (in /data03/vondele/bugs/a.out)
==14586==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

looks like an important issue to me.


[Bug fortran/48462] [4.6/4.7 Regression] matmul Segmentation Fault with Allocatable Array

2011-04-05 Thread Joost.VandeVondele at pci dot uzh.ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48462

--- Comment #2 from Joost VandeVondele Joost.VandeVondele at pci dot uzh.ch 
2011-04-05 15:40:41 UTC ---
somewhat reduced:

program main
implicit none
integer, parameter :: dp = kind(0.0d0)
real(kind=dp), allocatable :: a(:,:)
real(kind=dp), allocatable :: b(:,:)
allocate(a(3,3))
allocate(b(3,3))
a = matmul( matmul( a, b ), b ) ! Segmentation Fault
end program main


[Bug fortran/48462] [4.6/4.7 Regression] matmul Segmentation Fault with Allocatable Array

2011-04-05 Thread Joost.VandeVondele at pci dot uzh.ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48462

Joost VandeVondele Joost.VandeVondele at pci dot uzh.ch changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2011.04.05 15:43:17
 Ever Confirmed|0   |1