diff options
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r-- | gcc/java/class.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c index d7e22c2..21945eb 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -2093,8 +2093,9 @@ maybe_layout_super_class (tree super_class, tree this_class) DECL_SOURCE_LINE (this_decl), 0); #endif } - super_class = do_resolve_class (NULL_TREE, this_class, - super_class, NULL_TREE, this_wrap); + super_class + = do_resolve_class (DECL_CONTEXT (TYPE_NAME (this_class)), + this_class, super_class, NULL_TREE, this_wrap); if (!super_class) return NULL_TREE; /* FIXME, NULL_TREE not checked by caller. */ super_class = TREE_TYPE (super_class); |