PR middle-end/24362
* g++.dg/opt/complex4.C: New test.
2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/24362
* tree-complex.c (extract_component): Treat RESULT_DECL
like the rest of the decls.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105930
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR middle-end/24362
+ * tree-complex.c (extract_component): Treat RESULT_DECL
+ like the rest of the decls.
+
2005-10-25 Eric Botcazou <ebotcazou@adacore.com>
* config/ia64/ia64.c (ia64_output_function_profiler): Emit an
+2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR middle-end/24362
+ * g++.dg/opt/complex4.C: New test.
+
2005-10-25 Eric Botcazou <ebotcazou@adacore.com>
* gcc.dg/nested-func-4.c: New test.
--- /dev/null
+// PR 24362
+// { dg-do compile }
+// { dg-options "-O2" }
+
+typedef __complex__ double cdouble;
+cdouble elt_zero();
+const cdouble *pointer();
+
+cdouble trace(void)
+{
+ cdouble output = elt_zero();
+ const cdouble *data = pointer();
+ output += data[1];
+ return output;
+}
+
return TREE_OPERAND (t, imagpart_p);
case VAR_DECL:
+ case RESULT_DECL:
case PARM_DECL:
case INDIRECT_REF:
case COMPONENT_REF: