$ cat ../prs/reshape.f90
   real :: a(2,2), z = 1.0
   a = reshape ([z], [2,2])
end

[EMAIL PROTECTED] /home/pr29431
$ /irun/bin/gfortran ../prs/reshape.f90

[EMAIL PROTECTED] /home/pr29431
$ ./a
Segmentation fault (core dumped)

I have a partial fix that breaks two testsuite cases; I expect that it will be
done in the next day or two.

Paul


-- 
           Summary: Runtime segfault in RESHAPE with insuuficient elements
                    in SOURCE
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pault at gcc dot gnu dot org


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

Reply via email to