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/29758] New: Runtime segfault in RESHAPE with insuuficient elements in SOURCE


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

Paul@NONE-X6EIN5I8FN /home/pr29431
$ /irun/bin/gfortran ../prs/reshape.f90

Paul@NONE-X6EIN5I8FN /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


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