aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2001-08-30 20:07:12 -0700
committerPer Bothner <bothner@gcc.gnu.org>2001-08-30 20:07:12 -0700
commitf0cdee96aa2a739a34f820638c98814b139e3bd5 (patch)
tree8277ed149a96676500ea0980b0398052c912b123 /gcc/java
parent2d107c59b4bb5a4a8a67f4ebc9b277544005e3b4 (diff)
downloadgcc-f0cdee96aa2a739a34f820638c98814b139e3bd5.zip
gcc-f0cdee96aa2a739a34f820638c98814b139e3bd5.tar.gz
gcc-f0cdee96aa2a739a34f820638c98814b139e3bd5.tar.bz2
parse.y (resolve_qualified_expression_name): If creating a COMPOUND_EXPR, set it's type correctly.
* parse.y (resolve_qualified_expression_name): If creating a COMPOUND_EXPR, set it's type correctly. From-SVN: r45305
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/parse.y3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 02297cf..0d9f4c5 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,5 +1,10 @@
2001-08-30 Per Bothner <per@bothner.com>
+ * parse.y (resolve_qualified_expression_name): If creating a
+ COMPOUND_EXPR, set it's type correctly.
+
+2001-08-30 Per Bothner <per@bothner.com>
+
* jcf-io.c (open_class): Set filename field.
* jcf-parse,c (parse_class_file): Set current_function_decl
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index 7567c3d..3f1cfa7 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -9418,7 +9418,8 @@ resolve_qualified_expression_name (wfl, found_decl, where_found, type_found)
forcoming function's argument. */
if (previous_call_static && is_static)
{
- decl = build (COMPOUND_EXPR, type, decl, *where_found);
+ decl = build (COMPOUND_EXPR, TREE_TYPE (*where_found),
+ decl, *where_found);
TREE_SIDE_EFFECTS (decl) = 1;
}
else