aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/module.c
diff options
context:
space:
mode:
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>2004-07-10 00:27:15 +0200
committerTobias Schlüter <tobi@gcc.gnu.org>2004-07-10 00:27:15 +0200
commit8598a1135ac5f99793d69679f4ec3537f2b83d1b (patch)
treebd0c919b862f1b5a30e646b4f6f603d98b224a74 /gcc/fortran/module.c
parent60f4f3b76bd3b192d5af9c391a14db0791ce084b (diff)
downloadgcc-8598a1135ac5f99793d69679f4ec3537f2b83d1b.zip
gcc-8598a1135ac5f99793d69679f4ec3537f2b83d1b.tar.gz
gcc-8598a1135ac5f99793d69679f4ec3537f2b83d1b.tar.bz2
re PR fortran/14077 (Data statement within a module that doesn't initialize a whole array creates an error)
PR fortran/14077 * moduele.c (mio_symbol): Don't I/O initial values unless symbol is a parameter. From-SVN: r84408
Diffstat (limited to 'gcc/fortran/module.c')
-rw-r--r--gcc/fortran/module.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c
index 9813b54..8fce458 100644
--- a/gcc/fortran/module.c
+++ b/gcc/fortran/module.c
@@ -2675,7 +2675,9 @@ mio_symbol (gfc_symbol * sym)
mio_formal_arglist (sym);
- mio_expr (&sym->value);
+ if (sym->attr.flavor == FL_PARAMETER)
+ mio_expr (&sym->value);
+
mio_array_spec (&sym->as);
mio_symbol_ref (&sym->result);