Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 29467
Collapse All | Expand All

(-)gcc/cp/typeck.c (-1 / +10 lines)
Lines 5526-5534 Link Here
5526
	{
5526
	{
5527
	  tree result_type = TREE_TYPE (newrhs);
5527
	  tree result_type = TREE_TYPE (newrhs);
5528
        tree lhs2;
5529
5530
        /* Ensure that the calls are not shared with the lhs kept
5531
           at condition.  */
5532
        if (TREE_SIDE_EFFECTS (lhs))
5533
          lhs2 = break_out_calls (lhs);
5534
        else
5535
          lhs2 = lhs;
5536
5528
	  /* We have to convert each arm to the proper type because the
5537
	  /* We have to convert each arm to the proper type because the
5529
	     types may have been munged by constant folding.  */
5538
	     types may have been munged by constant folding.  */
5530
	  result
5539
	  result
5531
	    = build (COND_EXPR, result_type, cond,
5540
	    = build (COND_EXPR, result_type, cond,
5532
		     build_modify_expr (lhs, modifycode,
5541
                   build_modify_expr (lhs2, modifycode,
5533
					cp_convert (result_type,
5542
					cp_convert (result_type,
5534
						    TREE_OPERAND (newrhs, 1))),
5543
						    TREE_OPERAND (newrhs, 1))),

Return to bug 29467