[Bug fortran/45744] New: internal compiler error: in gfc_conv_expr_op, at fortran/trans-expr.c:1366

jpr at csc dot fi gcc-bugzilla@gcc.gnu.org
Wed Sep 22 04:47:00 GMT 2010


Hi,

the following fortran code hits an assert() in fortran/trans-expr.c:1366

MODULE m
CONTAINS
  FUNCTION rnd(n)
    INTEGER, INTENT(in) :: n
    REAL(8), DIMENSION(n) :: rnd
    CALL RANDOM_NUMBER(rnd)
  END FUNCTION rnd

  SUBROUTINE GeneticOptimize(parsize )
    INTEGER :: parsize

    REAL(8) :: popcross=0
    LOGICAL, ALLOCATABLE :: mask(:)

    allocate(mask(parsize))
    mask = (rnd(parsize) < popcross)
  END SUBROUTINE GeneticOptimize
END MODULE m



gfortran -O1 -v a.f90
Driving: gfortran -O1 -v a.f90 -l gfortran -l m -shared-libgcc
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/home/wrk/jpr/gcc-4.5/bin/../libexec/gcc/i686-pc-linux-gnu/4.6.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../gcc/configure --enable-languages=c,c++,fortran
--disable-bootstrap --prefix=/wrk/jpr/gcc-4.5 --with-gmp=/wrk/jpr/extralib
--with-mpfr=/wrk/jpr/extralib
Thread model: posix
gcc version 4.6.0 20100921 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-O1' '-v' '-shared-libgcc' '-mtune=generic'
'-march=pentiumpro'
 /home/wrk/jpr/gcc-4.5/bin/../libexec/gcc/i686-pc-linux-gnu/4.6.0/f951 a.f90
-quiet -dumpbase a.f90 -mtune=generic -march=pentiumpro -auxbase a -O1 -version
-fintrinsic-modules-path
/home/wrk/jpr/gcc-4.5/bin/../lib/gcc/i686-pc-linux-gnu/4.6.0/finclude -o
/tmp/ccrHZk23.s
GNU Fortran (GCC) version 4.6.0 20100921 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.4.6 20060404 (Red Hat 3.4.6-11), GMP
version 4.3.1, MPFR version 2.4.1, MPC version 0.8
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU Fortran (GCC) version 4.6.0 20100921 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.4.6 20060404 (Red Hat 3.4.6-11), GMP
version 4.3.1, MPFR version 2.4.1, MPC version 0.8
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
a.f90: In function 'geneticoptimize':
a.f90:internal compiler error: in gfc_conv_expr_op, at
fortran/trans-expr.c:1366
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Regards, Juha


-- 
           Summary: internal compiler error: in gfc_conv_expr_op, at
                    fortran/trans-expr.c:1366
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jpr at csc dot fi


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



More information about the Gcc-bugs mailing list