Hi, I got AN ICE trying to compile
---------- module bcc implicit none private type md_field real,dimension(:,:),pointer :: position end type md_field real,dimension(1:3,1:2),parameter :: unitcell & = reshape((/ 0.25,0.25,0.25, 0.75,0.75,0.75 /),(/3,2/)) contains subroutine createBccLattice(x,counts) integer,dimension(1:3),intent(in) :: counts type(md_field),pointer :: x integer :: i,j,k do i=1,counts(1) do j=1,counts(2) do k=1,counts(3) x % position(:,1:2)& = unitcell + spread((/ i,j,k/),2,size(unitcell,2)) end do end do end do return end subroutine createBccLattice end module bcc ---------- maybe it is related to some other spread related errors, I encountered in an older gfortran debian package, which seemed to occure only after several spread calls. Unfortunately at that time it was too difficult to get a nice code snippet for the report. For your information: [EMAIL PROTECTED]:~/bugs/gfortran$ LANG=C gfortran -v -c ICE5.f90 Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,java,fortran,objc,obj-c++,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/jre --enable-mpfr --enable-checking=release x86_64-linux-gnu Thread model: posix gcc version 4.1.2 20060613 (prerelease) (Debian 4.1.1-5) /usr/lib/gcc/x86_64-linux-gnu/4.1.2/f951 ICE5.f90 -quiet -dumpbase ICE5.f90 -mtune=k8 -auxbase ICE5 -version -o /tmp/ccsURLG7.s GNU F95 version 4.1.2 20060613 (prerelease) (Debian 4.1.1-5) (x86_64-linux-gnu) compiled by GNU C version 4.1.2 20060613 (prerelease) (Debian 4.1.1-5). GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128471 ICE5.f90: In function 'createbcclattice': ICE5.f90:11: internal compiler error: in gfc_trans_array_constructor, at fortran/trans-array.c:1317 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>. [EMAIL PROTECTED]:~/bugs/gfortran$ -- Summary: spread causes ICE in gfc_trans_array_constructor Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: keinstein_junior at gmx dot net GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29060