aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/primary.c
diff options
context:
space:
mode:
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>2004-05-15 20:02:20 +0200
committerTobias Schlüter <tobi@gcc.gnu.org>2004-05-15 20:02:20 +0200
commitd663434b6cd9ae8cbaac50a8c1dcff317594184d (patch)
treea2f7e67e6e38ab33d08e077762d35c4386c5e8b1 /gcc/fortran/primary.c
parentf437e359921603b19e22c44b44f6bb64c199b04f (diff)
downloadgcc-d663434b6cd9ae8cbaac50a8c1dcff317594184d.zip
gcc-d663434b6cd9ae8cbaac50a8c1dcff317594184d.tar.gz
gcc-d663434b6cd9ae8cbaac50a8c1dcff317594184d.tar.bz2
re PR fortran/13826 (Derived types in DATA statements not PARAMETERs)
fortran: PR fortran/13826 * primary.c (match_structure_constructor): Rename ... (gfc_match_structure_constructor): ... to this. Make non-static. (gfc_match_rvalue): Call renamed function. * match.h (gfc_match_structure_constructor): Declare. * match.c (gfc_match_data_constant): Handle structure constructor. testsuite: PR fortran/13826 * gfortran.fortran-torture/compile/data_1.f90: New test. From-SVN: r81891
Diffstat (limited to 'gcc/fortran/primary.c')
-rw-r--r--gcc/fortran/primary.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/fortran/primary.c b/gcc/fortran/primary.c
index 03e9757..d10a462 100644
--- a/gcc/fortran/primary.c
+++ b/gcc/fortran/primary.c
@@ -1747,8 +1747,8 @@ gfc_expr_attr (gfc_expr * e)
/* Match a structure constructor. The initial symbol has already been
seen. */
-static match
-match_structure_constructor (gfc_symbol * sym, gfc_expr ** result)
+match
+gfc_match_structure_constructor (gfc_symbol * sym, gfc_expr ** result)
{
gfc_constructor *head, *tail;
gfc_component *comp;
@@ -1908,7 +1908,7 @@ gfc_match_rvalue (gfc_expr ** result)
if (sym == NULL)
m = MATCH_ERROR;
else
- m = match_structure_constructor (sym, &e);
+ m = gfc_match_structure_constructor (sym, &e);
break;
/* If we're here, then the name is known to be the name of a