This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/19477] New: Array with lower bound cause ICE


This is simplified snippet from spec2004 benchmark 432.wrf

~/gcc/bin/gfortran --version
GNU Fortran 95 (GCC 4.0.0 20050114 (experimental))

cd /home/lei/SPEC2004/benchspec/CPU2004/432.wrf/run/00000001/
~/gcc/bin/gfortran -O0 -c bugreport.f90
bugreport.f90: In function ‘foo’:
bugreport.f90:2: internal compiler error: Segmentation fault

 SUBROUTINE foo ( x , y ,i,n)
    IMPLICIT NONE
 
    INTEGER  :: i,n

    REAL , DIMENSION(n:) , INTENT(IN) :: x
    REAL , DIMENSION(:) , INTENT(OUT) :: y
 
    y(i) = x(i)
    
 END SUBROUTINE foo

-- 
           Summary: Array with lower bound cause ICE
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lei at il dot ibm dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]