aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/interface.c
diff options
context:
space:
mode:
authorPaul Thomas <pault@gcc.gnu.org>2006-11-24 22:22:40 +0000
committerPaul Thomas <pault@gcc.gnu.org>2006-11-24 22:22:40 +0000
commit536afc35bcf3c814347f9f4a88682e9f345d354f (patch)
treee7282ffa93de4569b618b2f353edc62bd74a97eb /gcc/fortran/interface.c
parente7c1c8d1a18a2551c91254fc2b92f69c788c077b (diff)
downloadgcc-536afc35bcf3c814347f9f4a88682e9f345d354f.zip
gcc-536afc35bcf3c814347f9f4a88682e9f345d354f.tar.gz
gcc-536afc35bcf3c814347f9f4a88682e9f345d354f.tar.bz2
re PR fortran/20880 (USE association of procedure's own interface)
2006-11-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/20880 * parse.c (parse_interface): Error if procedure name is that of encompassing scope. * resolve.c (resolve_fl_procedure): Error if procedure is ambiguous. PR fortran/29387 * interface.c (compare_actual_formal): Add missing condition that 'where' be present for error that asserts that actual arguments be definable. 2006-11-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/20880 * gfortran.dg/interface_3.f90: New test. PR fortran/29387 * gfortran.dg/generic_8.f90: New test. From-SVN: r119173
Diffstat (limited to 'gcc/fortran/interface.c')
-rw-r--r--gcc/fortran/interface.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c
index e1564b2..80a773e 100644
--- a/gcc/fortran/interface.c
+++ b/gcc/fortran/interface.c
@@ -1379,8 +1379,9 @@ compare_actual_formal (gfc_actual_arglist ** ap,
&& (f->sym->attr.intent == INTENT_OUT
|| f->sym->attr.intent == INTENT_INOUT))
{
- gfc_error ("Actual argument at %L must be definable to "
- "match dummy INTENT = OUT/INOUT", &a->expr->where);
+ if (where)
+ gfc_error ("Actual argument at %L must be definable to "
+ "match dummy INTENT = OUT/INOUT", &a->expr->where);
return 0;
}