Commit 9adcf5b4 by Eric Botcazou Committed by Eric Botcazou

decl.c (gnat_to_gnu_entity): Deal with an error mark as renamed object in type annotating mode.

	* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Deal with an
	error mark as renamed object in type annotating mode.

From-SVN: r204942
parent 5f1b2f8b
2013-11-18 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Deal with an
error mark as renamed object in type annotating mode.
2013-11-15 H.J. Lu <hongjiu.lu@intel.com> 2013-11-15 H.J. Lu <hongjiu.lu@intel.com>
PR ada/54040 PR ada/54040
......
...@@ -1117,6 +1117,10 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition) ...@@ -1117,6 +1117,10 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
as we have a VAR_DECL for the pointer we make. */ as we have a VAR_DECL for the pointer we make. */
} }
if (type_annotate_only
&& TREE_CODE (maybe_stable_expr) == ERROR_MARK)
gnu_expr = NULL_TREE;
else
gnu_expr = build_unary_op (ADDR_EXPR, gnu_type, gnu_expr = build_unary_op (ADDR_EXPR, gnu_type,
maybe_stable_expr); maybe_stable_expr);
......
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