This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/72791] Internal compiler error for reshape intrinsic


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72791

--- Comment #1 from kargl at gcc dot gnu.org ---
(In reply to Patrick Seewald from comment #0)
> I get an internal compiler error (Segmentation fault) when compiling the
> following program
> 
> program reshape_bug
>    integer, dimension(2) :: order1
>    integer, dimension(1) :: order2
>    real, dimension(2,2,2) :: arr1, arr2
> 
>    order1 = [1,2]
>    order2 = [3]
> 
>    arr2 = reshape(arr1, shape=shape(arr2), order=[order1,order2])
> end program
>        

This bug is fixed on trunk (aka gfortran 7.0).
I have no cycles to backport the patch 
to any branch.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]