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

Joost.VandeVondele at pci dot uzh.ch gcc-bugzilla@gcc.gnu.org
Tue Apr 5 15:40:00 GMT 2011


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



More information about the Gcc-bugs mailing list