summaryrefslogtreecommitdiffstats
path: root/gcc/fortran/trans-common.c
diff options
context:
space:
mode:
authortobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-23 19:02:29 +0000
committertobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-23 19:02:29 +0000
commita05623171bccd9cc2510eb9f4b906ba86d1f5f46 (patch)
treec3dd910bd906ccffa8fb44a3d9043fe315e80a35 /gcc/fortran/trans-common.c
parentf119c0554dad5515e6c9d7cc6224a609bc73a39b (diff)
downloadppe42-gcc-a05623171bccd9cc2510eb9f4b906ba86d1f5f46.tar.gz
ppe42-gcc-a05623171bccd9cc2510eb9f4b906ba86d1f5f46.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95463 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/trans-common.c')
-rw-r--r--gcc/fortran/trans-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/trans-common.c b/gcc/fortran/trans-common.c
index 6a6e1395f10..35ea8012034 100644
--- a/gcc/fortran/trans-common.c
+++ b/gcc/fortran/trans-common.c
@@ -288,7 +288,7 @@ build_common_decl (gfc_common_head *com, tree union_type, bool is_init)
/* Create a namespace to store symbols for common blocks. */
if (gfc_common_ns == NULL)
- gfc_common_ns = gfc_get_namespace (NULL);
+ gfc_common_ns = gfc_get_namespace (NULL, 0);
gfc_get_symbol (com->name, gfc_common_ns, &common_sym);
decl = common_sym->backend_decl;
OpenPOWER on IntegriCloud