diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2008-06-24 21:44:28 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2008-06-24 21:44:28 +0000 |
commit | c4e3543d047ac58fa0c989d036ce8f3bbc0392a7 (patch) | |
tree | a1a57d6d3298f726c1ff44a3519a0a4e32c92381 /gcc/fortran/interface.c | |
parent | 7b98a7257e8957c74611788d9020d8cd613d7d89 (diff) | |
download | gcc-c4e3543d047ac58fa0c989d036ce8f3bbc0392a7.zip gcc-c4e3543d047ac58fa0c989d036ce8f3bbc0392a7.tar.gz gcc-c4e3543d047ac58fa0c989d036ce8f3bbc0392a7.tar.bz2 |
re PR fortran/36371 (Wrong locus for errors in DATA statement)
2008-06-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34371
* expr.c (gfc_check_assign): Change message and locus for
error when conform == 0.
2008-06-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/36371
* gfortran.dg/data_array_5.f90: New test.
From-SVN: r137088
Diffstat (limited to 'gcc/fortran/interface.c')
-rw-r--r-- | gcc/fortran/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c index 724d662..26b4591 100644 --- a/gcc/fortran/interface.c +++ b/gcc/fortran/interface.c @@ -2379,7 +2379,7 @@ check_intents (gfc_formal_arglist *f, gfc_actual_arglist *a) return FAILURE; } - if (a->expr->symtree->n.sym->attr.pointer) + if (f->sym->attr.pointer) { gfc_error ("Procedure argument at %L is local to a PURE " "procedure and has the POINTER attribute", |