Following code should print the runtime error, shouldn't it? This test is taken
from http://ftp.cac.psu.edu/pub/ger/fortran/test

$ cat test.f90
        subroutine foo(y)
           character(len=20) :: y
           y = 'hello world'
        end

        program test
           character(len=10) :: x
           call foo(x)
           write(*,*) 'X=',x
           pause
        end

$ gfortran test.f90
$./a.out
X=hello worl
PAUSE
To resume execution, type go.  Other input will terminate the job.
go
RESUMED


-- 
           Summary: another runtime error goes undetected
           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=24886

Reply via email to