diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-15 15:44:22 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-15 15:44:22 +0000 |
commit | d526ff887d6e6e247597882976b7863cbdfaf4b5 (patch) | |
tree | cbc423f1f72886520c3332a55320578a49eb12e1 /gcc/fortran/check.c | |
parent | 11d3f544c02f2845f1a5230f3a6fe500b7960d42 (diff) | |
download | gcc-d526ff887d6e6e247597882976b7863cbdfaf4b5.tar.gz |
2012-09-15 Tobias Burnus <burnus@net-b.de>
* arith.c (arith_power): Call gfc_free_expr in case of error.
* array.c (gfc_match_array_constructor): Initialize variable.
(gfc_resolve_character_array_constructor): Remove superfluous check.
(gfc_array_dimen_size): Add assert.
* check.c (numeric_check): Fix implicit typing.
* class.c (gfc_build_class_symbol): Add assert.
(finalize_component): Free memory.
* dump-parse-tree.c (show_namespace): Add assert.
* trans-io.c (transfer_namelist_element, transfer_expr): Avoid
memory leakage.
(gfc_trans_transfer): Add assert.
* trans.c (gfc_trans_runtime_check): Call va_end
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191344 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/check.c')
-rw-r--r-- | gcc/fortran/check.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/check.c b/gcc/fortran/check.c index 2235b52d6d3..58c5856795d 100644 --- a/gcc/fortran/check.c +++ b/gcc/fortran/check.c @@ -79,7 +79,7 @@ numeric_check (gfc_expr *e, int n) /* If the expression has not got a type, check if its namespace can offer a default type. */ - if ((e->expr_type == EXPR_VARIABLE || e->expr_type == EXPR_VARIABLE) + if ((e->expr_type == EXPR_VARIABLE || e->expr_type == EXPR_FUNCTION) && e->symtree->n.sym->ts.type == BT_UNKNOWN && gfc_set_default_type (e->symtree->n.sym, 0, e->symtree->n.sym->ns) == SUCCESS |