------- Additional Comments From tkoenig at gcc dot gnu dot org 2005-09-18 09:51 ------- This is not fixed in 4.0.2:
$ cat pr12366.f90 program testg real, dimension(5) :: a=(/ 1.5,2.1,3.2,4.6,5.3 /) integer,dimension(3) :: i i=(/ 2,3,1 /) print *, a((/ 2,3,1 /)) ! ICEs ! print *, a(i) !works fine end program testg $ gfortran pr12366.f90 pr12366.f90: In function 'MAIN__': pr12366.f90:5: internal compiler error: in gfc_conv_ss_descriptor, at fortran/trans-array.c:1235 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. $ gfortran -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc-4.0/configure --prefix=/home/ig25 --enable-languages=c,fortran Thread model: posix gcc version 4.0.2 20050917 (prerelease) -- What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Known to fail| |4.0.2 Known to work| |4.1.0 Resolution|FIXED | Summary|array assignment fails |[4.0 only] array assignment | |fails http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12366