Start from trunk 134730, still fail by 134775: $ cat f2.f90 subroutine foo(func,p,eval) real(kind=kind(1.0d0)), dimension(3,0:4,0:4,0:4) :: p logical(kind=kind(.true.)), dimension(5,5,5) :: eval interface subroutine func(values,pt) real(kind=kind(1.0d0)), dimension(:), intent(out) :: values real(kind=kind(1.0d0)), dimension(:,:), intent(in) :: pt end subroutine end interface real(kind=kind(1.0d0)), dimension(125,3) :: pt integer(kind=kind(1)) :: n_pt
n_pt = 1 pt(1:n_pt,:) = & reshape( & pack( & transpose(reshape(p,(/3,125/))), & spread(reshape(eval,(/125/)),dim=2,ncopies=3)), & (/n_pt,3/)) end subroutine end $ gfortran -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ../src/configure --disable-bootstrap --enable-languages=c,fortran Thread model: posix gcc version 4.4.0 20080427 (experimental) [trunk revision 134730] (GCC) $ gfortran -c -O2 f2.f90 f2.f90: In function 'foo': f2.f90:1: internal compiler error: in execute_todo, at passes.c:991 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -- Summary: gfortran fails to build cpu2006/465.tonto Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Joey dot ye at intel dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36078