diff options
author | janus <janus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-28 15:14:45 +0000 |
---|---|---|
committer | janus <janus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-28 15:14:45 +0000 |
commit | b1fe281557bc7b61f29c140e07364d072a3f2ea6 (patch) | |
tree | 3b53f87e7bddf9f3ed6effd0a4ad6511dd0ee276 /gcc/fortran/check.c | |
parent | 7434f296c21b16c852839ec11874ac8fe5fb518a (diff) | |
download | gcc-b1fe281557bc7b61f29c140e07364d072a3f2ea6.tar.gz |
2012-12-28 Janus Weil <janus@gcc.gnu.org>
PR fortran/55692
* check.c (gfc_check_associated): Remove a "gcc_assert (0)".
2012-12-28 Janus Weil <janus@gcc.gnu.org>
PR fortran/55692
* gfortran.dg/associated_7.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194744 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/check.c')
-rw-r--r-- | gcc/fortran/check.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/fortran/check.c b/gcc/fortran/check.c index 0923f121215..4e8b046439d 100644 --- a/gcc/fortran/check.c +++ b/gcc/fortran/check.c @@ -895,12 +895,10 @@ gfc_check_associated (gfc_expr *pointer, gfc_expr *target) where = &pointer->where; - if (pointer->expr_type == EXPR_VARIABLE || pointer->expr_type == EXPR_FUNCTION) - attr1 = gfc_expr_attr (pointer); - else if (pointer->expr_type == EXPR_NULL) + if (pointer->expr_type == EXPR_NULL) goto null_arg; - else - gcc_assert (0); /* Pointer must be a variable or a function. */ + + attr1 = gfc_expr_attr (pointer); if (!attr1.pointer && !attr1.proc_pointer) { |