Following code causing the ice in fortran/trans.c at line 152

$ cat test_forall.f90
      program test_forall
         type element
            character(32), pointer :: name
         end type element
         type(element)     :: charts(50)
         character(32), target :: names(50)
         forall(i=1:50)
            charts(i)%name => names(i)
         end forall
      end

$ gfortran -v test_forall.f90

Using built-in specs.
Target: powerpc64-linux
Configured with: /home/gccbuild/gcc_trunk_anonsvn/trunk/configure
--prefix=/opt/gcc-nightly/trunk-20051117 --build=powerpc64-linux
--host=powerpc64-linux --target=powerpc64-linux --with-cpu=default32
--with-as=/opt/gcc-nightly/trunk-20051117/bin/as
--with-ld=/opt/gcc-nightly/trunk-20051117/bin/ld --enable-threads=posix
--enable-shared --enable-__cxa_atexit
--enable-languages=c,c++,f95,java,objc,obj-c++ --enable-checking
--with-mpfr=/opt/gcc-nightly/trunk-20051117
Thread model: posix
gcc version 4.1.0 20051117 (experimental)
 /home/gcc-nightly/trunk-20051117/bin/../libexec/gcc/powerpc64-linux/4.1.0/f951
forall.f90 -quiet -dumpbase forall.f90 -auxbase forall -version -o
/tmp/ccFvW4R8.s
GNU F95 version 4.1.0 20051117 (experimental) (powerpc64-linux)
        compiled by GNU C version 4.1.0 20051117 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
forall.f90: In function ‘MAIN__’:
forall.f90:1: internal compiler error: in gfc_add_modify_expr, at
fortran/trans.c:152
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: Internal error
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: uttamp at us dot ibm dot com
 GCC build triplet: powerpc64-linux
  GCC host triplet: powerpc64-linux
GCC target triplet: powerpc64-linux


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

Reply via email to