diff options
author | Janus Weil <janus@gcc.gnu.org> | 2010-11-06 18:58:11 +0100 |
---|---|---|
committer | Janus Weil <janus@gcc.gnu.org> | 2010-11-06 18:58:11 +0100 |
commit | fbc7f9df71ac3c5dd63e014686ce9b3022f83f82 (patch) | |
tree | 6362ab383813bea88ec943773205746c0350ca50 /gcc/fortran/trans-expr.c | |
parent | 4ee3b0139f8dd732d6f0cf9571e86cd0ce3740a0 (diff) | |
download | gcc-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.c | 2 |
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; } |