[Bug fortran/30235] New: missing alternate return argument with explicit interface causes segfault

brooks at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Dec 17 06:07:00 GMT 2006


The following code, in which the (contained) subroutine has an alternate return
argument which is not present in the subroutine call, produces a segfault:

------------------------------------------------------------------
debian-gfortran:~/test> cat altreturn3.f90
program altreturn3
  call altret()
contains
  subroutine altret(*)
    return 1
  end subroutine
end

debian-gfortran:~/test> ../bin-trunk/bin/gfortran altreturn3.f90 -o altret3
altreturn3.f90:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

debian-gfortran:~/test> ../bin-trunk/bin/gfortran --version
GNU Fortran 95 (GCC) 4.3.0 20061128 (experimental)
Copyright (C) 2006 Free Software Foundation, Inc.


-- 
           Summary: missing alternate return argument with explicit
                    interface causes segfault
           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: brooks at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list