http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58989

            Bug ID: 58989
           Summary: internal compiler error when using reshape function
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: firefox84 at freenet dot de

When trying to compile this code


PROGRAM test

  REAL(KIND=KIND(1.0d0)), DIMENSION(4,4) :: fluxes
  REAL(KIND=KIND(1.0d0)), DIMENSION(2,2,2,2) :: f
  INTEGER, DIMENSION(3) :: dmmy 

  dmmy = (/2,2,2/)

  f = reshape(fluxes,(/dmmy,2/))

END PROGRAM test


with:     gfortran -v -o test test.f90


I get this error message:


Driving: gfortran -mmacosx-version-min=10.7.4 -v -o test test.f90 -l gfortran
-shared-libgcc
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin11.3.0/4.7.0/lto-wrapper
Target: x86_64-apple-darwin11.3.0
Configured with: ../gcc-4.7.0-RC-20120314/configure --enable-languages=fortran
Thread model: posix
gcc version 4.7.0 20120314 (prerelease) (GCC) 
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.4' '-v' '-o' 'test'
'-shared-libgcc' '-mtune=core2'
 /usr/local/libexec/gcc/x86_64-apple-darwin11.3.0/4.7.0/f951 test.f90 -fPIC
-quiet -dumpbase test.f90 -mmacosx-version-min=10.7.4 -mtune=core2 -auxbase
test -version -fintrinsic-modules-path
/usr/local/lib/gcc/x86_64-apple-darwin11.3.0/4.7.0/finclude -o
/var/folders/f1/w3v6_9qn33s8grk9ktdq0mxw0000gp/T//ccrVOpIo.s
GNU Fortran (GCC) version 4.7.0 20120314 (prerelease)
(x86_64-apple-darwin11.3.0)
    compiled by GNU C version 4.7.0 20120314 (prerelease), GMP version 4.3.1,
MPFR version 2.4.1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Fortran (GCC) version 4.7.0 20120314 (prerelease)
(x86_64-apple-darwin11.3.0)
    compiled by GNU C version 4.7.0 20120314 (prerelease), GMP version 4.3.1,
MPFR version 2.4.1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
f951: internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Reply via email to