This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix complex -> complex C conversions (PR c/47150)
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 6 Jan 2011 00:18:14 +0000 (UTC)
- Subject: Re: [PATCH] Fix complex -> complex C conversions (PR c/47150)
- References: <20110106001133.GO16156@tyan-ft48-01.lab.bos.redhat.com>
On Thu, 6 Jan 2011, Jakub Jelinek wrote:
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
> 4.5 after a while?
>
> 2011-01-05 Jakub Jelinek <jakub@redhat.com>
>
> PR c/47150
> * c-convert.c (convert): When converting a complex expression
> other than COMPLEX_EXPR to a different complex type, ensure
> c_save_expr is called instead of save_expr, unless in_late_binary_op.
> * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
> when converting COMPLEX_TYPE.
>
> * gcc.c-torture/compile/pr47150.c: New test.
OK.
--
Joseph S. Myers
joseph@codesourcery.com