[C PATCH] Avoid ICEs due to save_expr instead of c_save_expr (PR c/54428)

Joseph S. Myers joseph@codesourcery.com
Fri Aug 31 14:49:00 GMT 2012


On Fri, 31 Aug 2012, Jakub Jelinek wrote:

> 2012-08-31  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR c/54428
> 	* c-convert.c (convert): Don't call fold_convert_loc if
> 	TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
> 	is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
> 	COMPLEX_TYPE -> COMPLEX_TYPE conversion.
> 
> 	* gcc.c-torture/compile/pr54428.c: New test.

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list