aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/resolve.c
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2007-11-18 20:53:16 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2007-11-18 20:53:16 +0000
commit33717d596b7b976fbdc0ed47788200aee0085a75 (patch)
tree303cdfc1589a960500cc95db50a0570b408ad8fd /gcc/fortran/resolve.c
parent05969da4c37b0c4120a5ac7b7a803f3f98f972af (diff)
downloadgcc-33717d596b7b976fbdc0ed47788200aee0085a75.zip
gcc-33717d596b7b976fbdc0ed47788200aee0085a75.tar.gz
gcc-33717d596b7b976fbdc0ed47788200aee0085a75.tar.bz2
trans-expr.c (gfc_conv_missing_dummy): Set the type of the dummy argument to default integer if flagged to do so.
2007-11-18 Jerry DeLisle <jvdelisle@gcc.gnu.org> * trans-expr.c (gfc_conv_missing_dummy): Set the type of the dummy argument to default integer if flagged to do so. Fix typo in comment. * resolve.c (gfc_resolve_dim_arg): Whitespace cleanup. * iresolve.c (gfc_resolve_cshift): Do not convert type, mark attribute for converting the DIM type appropriately in trans-expr.c. (gfc_resolve_eoshift): Likewise. * check.c (dim_check): Remove pre-existing dead code. (gfc_check_cshift): Enable dim_check to allow DIM as an optional. (gfc_check_eoshift): Likewise. * trans_intrinsic.c (gfc_conv_intrinsic_function_args): Fix whitespace. From-SVN: r130276
Diffstat (limited to 'gcc/fortran/resolve.c')
-rw-r--r--gcc/fortran/resolve.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c
index 0d5e36e..6c9856d 100644
--- a/gcc/fortran/resolve.c
+++ b/gcc/fortran/resolve.c
@@ -3445,11 +3445,13 @@ gfc_resolve_dim_arg (gfc_expr *dim)
return FAILURE;
}
+
if (dim->ts.type != BT_INTEGER)
{
gfc_error ("Argument dim at %L must be of INTEGER type", &dim->where);
return FAILURE;
}
+
if (dim->ts.kind != gfc_index_integer_kind)
{
gfc_typespec ts;