This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix complex -> complex C conversions (PR c/47150)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]