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.