aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-expr.c
diff options
context:
space:
mode:
authorJanus Weil <janus@gcc.gnu.org>2010-11-06 18:58:11 +0100
committerJanus Weil <janus@gcc.gnu.org>2010-11-06 18:58:11 +0100
commitfbc7f9df71ac3c5dd63e014686ce9b3022f83f82 (patch)
tree6362ab383813bea88ec943773205746c0350ca50 /gcc/fortran/trans-expr.c
parent4ee3b0139f8dd732d6f0cf9571e86cd0ce3740a0 (diff)
downloadgcc-fbc7f9df71ac3c5dd63e014686ce9b3022f83f82.zip
gcc-fbc7f9df71ac3c5dd63e014686ce9b3022f83f82.tar.gz
gcc-fbc7f9df71ac3c5dd63e014686ce9b3022f83f82.tar.bz2
re PR fortran/46330 ([OOP] ICE after revision 166368)
2010-11-06 Janus Weil <janus@gcc.gnu.org> PR fortran/46330 * trans-expr.c (gfc_trans_class_assign): Find 'vtab' symbol in correct namespace. 2010-11-06 Janus Weil <janus@gcc.gnu.org> PR fortran/46330 * gfortran.dg/class_27.f03: New. From-SVN: r166405
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 8da6cf0..a95b421 100644
--- a/gcc/fortran/trans-expr.c
+++ b/gcc/fortran/trans-expr.c
@@ -5925,7 +5925,7 @@ gfc_trans_class_assign (gfc_expr *expr1, gfc_expr *expr2, gfc_exec_op op)
gcc_assert (vtab);
rhs = gfc_get_expr ();
rhs->expr_type = EXPR_VARIABLE;
- gfc_find_sym_tree (vtab->name, NULL, 1, &st);
+ gfc_find_sym_tree (vtab->name, vtab->ns, 1, &st);
rhs->symtree = st;
rhs->ts = vtab->ts;
}