case identical to FLOAT_EXPR.
<IMAGPART_EXPR>: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231861
138bc75d-0d04-0410-961f-
82ee72b054a4
2015-12-20 Eric Botcazou <ebotcazou@adacore.com>
+ * gcc-interface/utils2.c (gnat_rewrite_reference) <REALPART_EXPR>: New
+ case identical to FLOAT_EXPR.
+ <IMAGPART_EXPR>: Likewise.
+
+2015-12-20 Eric Botcazou <ebotcazou@adacore.com>
+
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: During
layout in type_annotate_only mode, skip discriminants of derived
tagged types renaming those of the parent type.
CASE_CONVERT:
case FLOAT_EXPR:
case FIX_TRUNC_EXPR:
+ case REALPART_EXPR:
+ case IMAGPART_EXPR:
case VIEW_CONVERT_EXPR:
result
= build1 (code, type,
+2015-12-20 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gnat.dg/complex1.adb: New test.
+ * gnat.dg/complex1_pkg.ads: New helper.
+
2015-12-19 Eric Botcazou <ebotcazou@adacore.com>
* gcc.target/sparc/20151219-1.c: New test.
--- /dev/null
+-- { dg-do compile }\r
+\r
+with Ada.Numerics.Complex_types; use Ada.Numerics.Complex_types;\r
+with Complex1_Pkg; use Complex1_Pkg;\r
+\r
+procedure Complex1 is\r
+ Z : Complex;\r
+begin\r
+ Coord (Z.Re, Z.Im);\r
+end;\r
--- /dev/null
+package Complex1_Pkg is\r
+\r
+ procedure Coord (x,y : out Float);\r
+\r
+end Complex1_Pkg;\r