aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.c
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>2000-05-20 22:38:05 +0000
committerTom Tromey <tromey@gcc.gnu.org>2000-05-20 22:38:05 +0000
commit6b48deee6ece109f4f4e4e2659f038472b9220c8 (patch)
treed80cb4b5c55e8cb674e846af59730bacf4eceef8 /gcc/java/parse.c
parentcb8d51687d5faba3725ff96b8277fb1142003450 (diff)
downloadgcc-6b48deee6ece109f4f4e4e2659f038472b9220c8.zip
gcc-6b48deee6ece109f4f4e4e2659f038472b9220c8.tar.gz
gcc-6b48deee6ece109f4f4e4e2659f038472b9220c8.tar.bz2
parse.y (resolve_package): Correctly set `*next' (was off by one.)
2000-05-01 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (resolve_package): Correctly set `*next' (was off by one.) (resolve_qualified_expression_name): Fixed comment. From-SVN: r34060
Diffstat (limited to 'gcc/java/parse.c')
-rw-r--r--gcc/java/parse.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/java/parse.c b/gcc/java/parse.c
index e4d044b..1b58acd 100644
--- a/gcc/java/parse.c
+++ b/gcc/java/parse.c
@@ -9311,7 +9311,10 @@ resolve_package (pkg, next)
if ((type_name = resolve_no_layout (acc, NULL_TREE)))
{
type_name = acc;
- *next = TREE_CHAIN (current);
+ /* resolve_package should be used in a loop, hence we
+ point at this one to naturally process the next one at
+ the next iteration. */
+ *next = current;
break;
}
}
@@ -11525,7 +11528,7 @@ resolve_qualified_expression_name (wfl, found_decl, where_found, type_found)
{
tree list;
*where_found = decl = resolve_no_layout (name, qual_wfl);
- /* We wan't to be absolutely that the class is laid
+ /* We want to be absolutely sure that the class is laid
out. We're going to search something inside it. */
*type_found = type = TREE_TYPE (decl);
layout_class (type);