aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-expr.c
diff options
context:
space:
mode:
authorJanus Weil <janus@gcc.gnu.org>2011-01-05 20:14:56 +0100
committerJanus Weil <janus@gcc.gnu.org>2011-01-05 20:14:56 +0100
commita29f38ce0775faee6c2bfa8bf3ef110d32215cb5 (patch)
treedf7602ef2396a4450fc5032e0bd50079c290c4fb /gcc/fortran/trans-expr.c
parentdc242c4a72ce443301a7546404c1c67c22225a24 (diff)
downloadgcc-a29f38ce0775faee6c2bfa8bf3ef110d32215cb5.zip
gcc-a29f38ce0775faee6c2bfa8bf3ef110d32215cb5.tar.gz
gcc-a29f38ce0775faee6c2bfa8bf3ef110d32215cb5.tar.bz2
re PR fortran/47180 ([OOP] EXTENDS_TYPE_OF returns the wrong result for disassociated polymorphic pointers)
2011-01-05 Janus Weil <janus@gcc.gnu.org> PR fortran/47180 * trans-expr.c (gfc_trans_class_assign): Bugfix for r168524 (make sure 'vtab' is initialized). From-SVN: r168526
Diffstat (limited to 'gcc/fortran/trans-expr.c')
-rw-r--r--gcc/fortran/trans-expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c
index fa58376..68eb1aa 100644
--- a/gcc/fortran/trans-expr.c
+++ b/gcc/fortran/trans-expr.c
@@ -6121,7 +6121,7 @@ gfc_trans_class_assign (gfc_expr *expr1, gfc_expr *expr2, gfc_exec_op op)
if (expr2->ts.type != BT_CLASS)
{
/* Insert an additional assignment which sets the '_vptr' field. */
- gfc_symbol *vtab;
+ gfc_symbol *vtab = NULL;
gfc_symtree *st;
lhs = gfc_copy_expr (expr1);