http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46547
--- Comment #10 from Joseph S. Myers <jsm28 at gcc dot gnu.org> 2010-11-19 18:33:02 UTC --- Author: jsm28 Date: Fri Nov 19 18:32:57 2010 New Revision: 166951 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166951 Log: PR c/46547 * c-tree.h (in_late_binary_op): Move to c-family/c-common.h. * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c. c-family: * c-common.c (in_late_binary_op): Define. (c_common_truthvalue_conversion): Check in_late_binary_op before calling c_save_expr. * c-common.h (in_late_binary_op): Declare. testsuite: * gcc.c-torture/compile/pr46547-1.c: New test. Added: trunk/gcc/testsuite/gcc.c-torture/compile/pr46547-1.c Modified: trunk/gcc/ChangeLog trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-common.c trunk/gcc/c-family/c-common.h trunk/gcc/c-tree.h trunk/gcc/c-typeck.c trunk/gcc/testsuite/ChangeLog