diff options
author | Janus Weil <janus@gcc.gnu.org> | 2013-12-18 23:00:53 +0100 |
---|---|---|
committer | Janus Weil <janus@gcc.gnu.org> | 2013-12-18 23:00:53 +0100 |
commit | 7289d1c97783c40ead8e74d6137e2dddc0d59e30 (patch) | |
tree | 192e21ebbdbdd80b1285dd235fa974713a3cb89a /gcc/fortran/interface.c | |
parent | f00f3b679e86ce80311dbeaa514ff488634f9245 (diff) | |
download | gcc-7289d1c97783c40ead8e74d6137e2dddc0d59e30.zip gcc-7289d1c97783c40ead8e74d6137e2dddc0d59e30.tar.gz gcc-7289d1c97783c40ead8e74d6137e2dddc0d59e30.tar.bz2 |
re PR fortran/59493 ([OOP] ICE: Segfault on Class(*) pointer association)
2013-12-18 Janus Weil <janus@gcc.gnu.org>
PR fortran/59493
* gfortran.h (gfc_find_intrinsic_vtab): Removed prototype.
(gfc_find_vtab): New prototype.
* class.c (gfc_find_intrinsic_vtab): Rename to 'find_intrinsic_vtab' and
make static. Minor modifications.
(gfc_find_vtab): New function.
(gfc_class_initializer): Use new function 'gfc_find_vtab'.
* check.c (gfc_check_move_alloc): Ditto.
* expr.c (gfc_check_pointer_assign): Ditto.
* interface.c (compare_actual_formal): Ditto.
* resolve.c (resolve_allocate_expr, resolve_select_type): Ditto.
* trans-expr.c (gfc_conv_intrinsic_to_class, gfc_trans_class_assign):
Ditto.
* trans-intrinsic.c (conv_intrinsic_move_alloc): Ditto.
* trans-stmt.c (gfc_trans_allocate): Ditto.
From-SVN: r206101
Diffstat (limited to 'gcc/fortran/interface.c')
-rw-r--r-- | gcc/fortran/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c index 1cd1c2b..243b0f1 100644 --- a/gcc/fortran/interface.c +++ b/gcc/fortran/interface.c @@ -2606,7 +2606,7 @@ compare_actual_formal (gfc_actual_arglist **ap, gfc_formal_arglist *formal, if (UNLIMITED_POLY (f->sym) && a->expr->ts.type != BT_DERIVED && a->expr->ts.type != BT_CLASS) - gfc_find_intrinsic_vtab (&a->expr->ts); + gfc_find_vtab (&a->expr->ts); if (a->expr->expr_type == EXPR_NULL && ((f->sym->ts.type != BT_CLASS && !f->sym->attr.pointer |