Commit f0cdee96 by Per Bothner Committed by Per Bothner

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
parent 2d107c59
2001-08-30 Per Bothner <per@bothner.com> 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-io.c (open_class): Set filename field.
* jcf-parse,c (parse_class_file): Set current_function_decl * jcf-parse,c (parse_class_file): Set current_function_decl
......
...@@ -9418,7 +9418,8 @@ resolve_qualified_expression_name (wfl, found_decl, where_found, type_found) ...@@ -9418,7 +9418,8 @@ resolve_qualified_expression_name (wfl, found_decl, where_found, type_found)
forcoming function's argument. */ forcoming function's argument. */
if (previous_call_static && is_static) 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; TREE_SIDE_EFFECTS (decl) = 1;
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment