This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/23308] named common block confused as procedure - runtime segfault
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jan 2006 19:27:08 -0000
- Subject: [Bug fortran/23308] named common block confused as procedure - runtime segfault
- References: <bug-23308-10374@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-01-07 19:27 -------
(In reply to comment #3)
> Index: gcc/fortran/resolve.c
> ===================================================================
> *** gcc/fortran/resolve.c (revision 109449)
> --- gcc/fortran/resolve.c (working copy)
> *************** resolve_function (gfc_expr * expr)
> *** 1157,1162 ****
> --- 1157,1172 ----
> try t;
> int temp;
The only question I have with this patch is the following still passes (this is
the main reason why I filed PR 25710 because I could not get the testcase in
there and this testcase working):
function f()
REAL :: f
f = 1.0
end function
call f
contains
SUBROUTINE f
end SUBROUTINE
end
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23308