Commit 5c2f94b4 by Jakub Jelinek Committed by Jakub Jelinek

re PR c/48742 (Internal error in gimplify_expr)

	PR c/48742
	* c-typeck.c (build_binary_op): Don't wrap arguments if
	int_operands is true.

	* gcc.c-torture/compile/pr48742.c: New test.

From-SVN: r173011
parent a4bd198c
2011-04-27 Jakub Jelinek <jakub@redhat.com>
PR c/48742
* c-typeck.c (build_binary_op): Don't wrap arguments if
int_operands is true.
2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/48767
......
......@@ -10190,7 +10190,7 @@ build_binary_op (location_t location, enum tree_code code,
warn_for_sign_compare (location, orig_op0_folded,
orig_op1_folded, op0, op1,
result_type, resultcode);
if (!in_late_binary_op)
if (!in_late_binary_op && !int_operands)
{
if (!op0_maybe_const || TREE_CODE (op0) != INTEGER_CST)
op0 = c_wrap_maybe_const (op0, !op0_maybe_const);
......
2011-04-27 Jakub Jelinek <jakub@redhat.com>
PR c/48742
* gcc.c-torture/compile/pr48742.c: New test.
2011-04-26 Jason Merrill <jason@redhat.com>
* g++.dg/lookup/koenig13.C: New.
......
/* PR c/48742 */
void baz (int);
int
foo (void)
{
return 1 / 0 > 0;
}
void
bar (void)
{
baz (1 <= 2 % (3 >> 1 > 5 / 6 == 3));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment