aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/check.c
diff options
context:
space:
mode:
authorSteven G. Kargl <kargl@gcc.gnu.org>2019-08-06 19:46:29 +0000
committerSteven G. Kargl <kargl@gcc.gnu.org>2019-08-06 19:46:29 +0000
commit1a3920654f92b83a206d62f4eddcf1f5c28a91de (patch)
tree5a71336fde8be9945c021f6e582690bee6cf0ebd /gcc/fortran/check.c
parentffc500dd41fd49db8e5ec5022389b664a1a04e6d (diff)
downloadgcc-1a3920654f92b83a206d62f4eddcf1f5c28a91de.zip
gcc-1a3920654f92b83a206d62f4eddcf1f5c28a91de.tar.gz
gcc-1a3920654f92b83a206d62f4eddcf1f5c28a91de.tar.bz2
re PR fortran/42546 (ALLOCATED statement typo in the docs and for scalar variables)
2019-08-01 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/42546 * check.c(gfc_check_allocated): Add comment pointing to ... * intrinsic.c(sort_actual): ... the checking done here. 2019-08-01 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/42546 * gfortran.dg/allocated_1.f90: New test. * gfortran.dg/allocated_2.f90: Ditto. From-SVN: r274147
Diffstat (limited to 'gcc/fortran/check.c')
-rw-r--r--gcc/fortran/check.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/fortran/check.c b/gcc/fortran/check.c
index 0204961..370a3c8 100644
--- a/gcc/fortran/check.c
+++ b/gcc/fortran/check.c
@@ -1340,6 +1340,10 @@ gfc_check_all_any (gfc_expr *mask, gfc_expr *dim)
}
+/* Limited checking for ALLOCATED intrinsic. Additional checking
+ is performed in intrinsic.c(sort_actual), because ALLOCATED
+ has two mutually exclusive non-optional arguments. */
+
bool
gfc_check_allocated (gfc_expr *array)
{