http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46547
--- Comment #11 from Joseph S. Myers <jsm28 at gcc dot gnu.org> 2010-11-19 20:45:07 UTC --- Author: jsm28 Date: Fri Nov 19 20:45:00 2010 New Revision: 166957 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166957 Log: PR c/46547 * 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. * c-tree.h (in_late_binary_op): Move to c-common.h. * c-typeck.c (in_late_binary_op): Move to c-common.c. testsuite: * gcc.c-torture/compile/pr46547-1.c: New test. Added: branches/gcc-4_5-branch/gcc/testsuite/gcc.c-torture/compile/pr46547-1.c Modified: branches/gcc-4_5-branch/gcc/ChangeLog branches/gcc-4_5-branch/gcc/c-common.c branches/gcc-4_5-branch/gcc/c-common.h branches/gcc-4_5-branch/gcc/c-tree.h branches/gcc-4_5-branch/gcc/c-typeck.c branches/gcc-4_5-branch/gcc/testsuite/ChangeLog