aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/decl.c
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2013-05-05 16:01:38 +0200
committerTobias Burnus <burnus@gcc.gnu.org>2013-05-05 16:01:38 +0200
commit07416986eccd280f847845c33215ecb3add7b195 (patch)
tree1179936b5bb8a899dbbce518e28a407fe9795743 /gcc/fortran/decl.c
parent3a1ee99e1af05d2d86e5119de025c6d8e25a40ff (diff)
downloadgcc-07416986eccd280f847845c33215ecb3add7b195.zip
gcc-07416986eccd280f847845c33215ecb3add7b195.tar.gz
gcc-07416986eccd280f847845c33215ecb3add7b195.tar.bz2
re PR fortran/57141 (Cannot change attributes of USE-associated intrinsic)
2013-05-05 Tobias Burnus <burnus@net-b.de> PR fortran/57141 * decl.c (gfc_match_null): Permit use-associated NULL intrinsic. 2013-05-05 Tobias Burnus <burnus@net-b.de> PR fortran/57141 * gfortran.dg/null_8.f90: New. From-SVN: r198609
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r--gcc/fortran/decl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c
index 0187911..6ae51e2 100644
--- a/gcc/fortran/decl.c
+++ b/gcc/fortran/decl.c
@@ -1710,6 +1710,7 @@ gfc_match_null (gfc_expr **result)
gfc_intrinsic_symbol (sym);
if (sym->attr.proc != PROC_INTRINSIC
+ && !(sym->attr.use_assoc && sym->attr.intrinsic)
&& (!gfc_add_procedure(&sym->attr, PROC_INTRINSIC, sym->name, NULL)
|| !gfc_add_function (&sym->attr, sym->name, NULL)))
return MATCH_ERROR;