aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/module.c
diff options
context:
space:
mode:
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>2005-02-23 20:02:29 +0100
committerTobias Schlüter <tobi@gcc.gnu.org>2005-02-23 20:02:29 +0100
commit0366dfe99326220dbcb8e046d7e1e77e9c4ac12d (patch)
treec3dd910bd906ccffa8fb44a3d9043fe315e80a35 /gcc/fortran/module.c
parent6b2117468998909065f7075541593af7ee9d8268 (diff)
downloadgcc-0366dfe99326220dbcb8e046d7e1e77e9c4ac12d.zip
gcc-0366dfe99326220dbcb8e046d7e1e77e9c4ac12d.tar.gz
gcc-0366dfe99326220dbcb8e046d7e1e77e9c4ac12d.tar.bz2
gfortran.h (gfc_get_namespace): Add second argument to prototype.
fortran/ * gfortran.h (gfc_get_namespace): Add second argument to prototype. * intrinsic.c (gfc_intrinsic_init_1): Pass second argument to gfc_get_namespace. * module.c (mio_namespace_ref, load_needed): Likewise. * parse.c (parse_interface, parse_contained): Likewise. Here the correct second argument matters. * symbol.c (gfc_get_namespace): Add parent_types argument, only copy parent's implicit types if this is set. (gfc_symbol_init_2): Pass second argument to gfc_get_namespace. * trans-common.c (build_common_decl): Likewise. testsuite/ * gfortran.dg/implicit_3.f90: New test. From-SVN: r95463
Diffstat (limited to 'gcc/fortran/module.c')
-rw-r--r--gcc/fortran/module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c
index 12d52c4..ff3dcff 100644
--- a/gcc/fortran/module.c
+++ b/gcc/fortran/module.c
@@ -2627,7 +2627,7 @@ mio_namespace_ref (gfc_namespace ** nsp)
ns = (gfc_namespace *)p->u.pointer;
if (ns == NULL)
{
- ns = gfc_get_namespace (NULL);
+ ns = gfc_get_namespace (NULL, 0);
associate_integer_pointer (p, ns);
}
else
@@ -2878,7 +2878,7 @@ load_needed (pointer_info * p)
the namespaces that hold the formal parameters of module
procedures. */
- ns = gfc_get_namespace (NULL);
+ ns = gfc_get_namespace (NULL, 0);
associate_integer_pointer (q, ns);
}