This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/72791] Internal compiler error for reshape intrinsic
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 03 Aug 2016 15:24:29 +0000
- Subject: [Bug fortran/72791] Internal compiler error for reshape intrinsic
- Auto-submitted: auto-generated
- References: <bug-72791-4@http.gcc.gnu.org/bugzilla/>
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.