[Bug c++/37217] [4.4 Regression] -Wconversion causes ICE with __builtin_strcmp with one char compare
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 25 08:27:00 GMT 2008
------- Comment #4 from burnus at gcc dot gnu dot org 2008-08-25 08:26 -------
My PR 37230 is presumably a duplicate of this PR. There, valgrind shows for
"gcc -Wconcersion":
==26156== Invalid read of size 2
==26156== at 0x458558: conversion_warning (c-common.c:1571)
==26156== by 0x4593F7: convert_and_check (c-common.c:1839)
==26156== by 0x42BF71: build_binary_op (c-typeck.c:8434)
1571 is this line:
1566 /* If any operand is artificial, then this expression was generated
1567 by the compiler and we do not warn. */
1568 for (i = 0; i < expr_num_operands; i++)
1569 {
1570 tree op = TREE_OPERAND (expr, i);
1571 if (DECL_P (op) && DECL_ARTIFICIAL (op))
1572 return;
1573 }
Working: 2008-08-20-r139252
Failing: 2008-08-21-r139367
Failing: 20080824 (experimental) [trunk revision 139535]
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37217
More information about the Gcc-bugs
mailing list