diff options
author | Tobias Burnus <burnus@net-b.de> | 2011-07-18 08:48:19 +0200 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2011-07-18 08:48:19 +0200 |
commit | d8155bf5e5816d44cec5ed1e3f929f2b8718ddab (patch) | |
tree | e120495531e4962cc83e942e8be4c79db2ec12c9 | |
parent | 25fe407a21ce928f3abe320b36a7b068ba25c577 (diff) | |
download | gcc-d8155bf5e5816d44cec5ed1e3f929f2b8718ddab.zip gcc-d8155bf5e5816d44cec5ed1e3f929f2b8718ddab.tar.gz gcc-d8155bf5e5816d44cec5ed1e3f929f2b8718ddab.tar.bz2 |
resolve.c (resolve_transfer): Mention defined I/O in the diagnostic for alloc_comp/pointer_comp.
2011-07-18 Tobias Burnus <burnus@net-b.de>
* resolve.c (resolve_transfer): Mention defined I/O
in the diagnostic for alloc_comp/pointer_comp.
From-SVN: r176386
-rw-r--r-- | gcc/fortran/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fortran/resolve.c | 12 |
2 files changed, 12 insertions, 5 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index d1f354e..215c321 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2011-07-18 Tobias Burnus <burnus@net-b.de> + + * resolve.c (resolve_transfer): Mention defined I/O + in the diagnostic for alloc_comp/pointer_comp. + 2011-07-17 Tobias Burnus <burnus@net-b.de> PR fortran/34657 diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index 07104b8..53f45e8 100644 --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/resolve.c @@ -5219,7 +5219,7 @@ check_host_association (gfc_expr *e) { /* Original was variable so convert array references into an actual arglist. This does not need any checking now - since gfc_resolve_function will take care of it. */ + since resolve_function will take care of it. */ e->value.function.actual = NULL; e->expr_type = EXPR_FUNCTION; e->symtree = st; @@ -8139,8 +8139,9 @@ resolve_transfer (gfc_code *code) components. */ if (ts->u.derived->attr.pointer_comp) { - gfc_error ("Data transfer element at %L cannot have " - "POINTER components", &code->loc); + gfc_error ("Data transfer element at %L cannot have POINTER " + "components unless it is processed by a defined " + "input/output procedure", &code->loc); return; } @@ -8154,8 +8155,9 @@ resolve_transfer (gfc_code *code) if (ts->u.derived->attr.alloc_comp) { - gfc_error ("Data transfer element at %L cannot have " - "ALLOCATABLE components", &code->loc); + gfc_error ("Data transfer element at %L cannot have ALLOCATABLE " + "components unless it is processed by a defined " + "input/output procedure", &code->loc); return; } |