]> gcc.gnu.org Git - gcc.git/commit - gcc/fortran/trans-decl.c
re PR fortran/24558 (ENTRY doesn't work in module procedures)
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 9 Jun 2006 22:16:08 +0000 (22:16 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 9 Jun 2006 22:16:08 +0000 (22:16 +0000)
commit1a492601a1e4a1e5e16a2de9c10065ce062394e4
tree8d0fb7320d34f476c6bd5691f92ac2df98f1fb3e
parentd0d1b24d8989e0f293291e6f31f08c40f332484c
re PR fortran/24558 (ENTRY doesn't work in module procedures)

2006-06-10  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/24558
PR fortran/20877
PR fortran/25047
* decl.c (get_proc_name): Add new argument to flag that a
module function entry is being treated. If true, correct
error condition, add symtree to module namespace and add
a module procedure.
(gfc_match_function_decl, gfc_match_entry,
gfc_match_subroutine): Use the new argument in calls to
get_proc_name.
* resolve.c (resolve_entries): ENTRY symbol reference to
to master entry namespace if a module function.
* trans-decl.c (gfc_create_module_variable): Return if
the symbol is an entry.
* trans-exp.c (gfc_conv_variable): Check that parent_decl
is not NULL.

2006-06-10  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/24558
* gfortran.dg/entry_6.f90: New test.

PR fortran/20877
PR fortran/25047
* gfortran.dg/entry_7.f90: New test.

From-SVN: r114526
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/resolve.c
gcc/fortran/trans-decl.c
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/entry_6.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/entry_7.f90 [new file with mode: 0644]
This page took 0.061433 seconds and 5 git commands to generate.