re PR fortran/46301 (Missing diagnosis for "len=:")

2010-11-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/46301
	trans-expr.c (gfc_trans_assignment): Add error message for not
	implemented assignment to deferred-length character variable.

From-SVN: r167212
This commit is contained in:
Jerry DeLisle 2010-11-27 22:12:46 +00:00
parent db0bba8ca8
commit d1ae7fe355
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2010-11-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/46301
trans-expr.c (gfc_trans_assignment): Add error message for not
implemented assignment to deferred-length character variable.
2010-11-26 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/45700

View File

@ -5806,6 +5806,13 @@ gfc_trans_assignment (gfc_expr * expr1, gfc_expr * expr2, bool init_flag,
bool dealloc)
{
tree tmp;
if (expr1->ts.type == BT_CHARACTER && expr1->ts.deferred)
{
gfc_error ("Assignment to deferred-length character variable at %L "
"not implemented", &expr1->where);
return NULL_TREE;
}
/* Special case a single function returning an array. */
if (expr2->expr_type == EXPR_FUNCTION && expr2->rank > 0)