This is the mail archive of the gcc-cvs@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]

r168537 - in /trunk/gcc: ChangeLog c-convert.c ...


Author: jakub
Date: Thu Jan  6 10:37:02 2011
New Revision: 168537

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168537
Log:
	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.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr47150.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-convert.c
    trunk/gcc/c-typeck.c
    trunk/gcc/testsuite/ChangeLog


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