[Bug c/33122] Mistaken type mismatch error prevents bootstrap

2007-08-20 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2007-08-20 15:45 --- Created an attachment (id=14081) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14081&action=view) patch -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c/33122] Mistaken type mismatch error prevents bootstrap

2007-08-20 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2007-08-20 15:39 --- Ah no, this is a bug in fold-const introduced by the pplus merge. Fix: @@ -9541,7 +9547,9 @@ fold_binary (enum tree_code code, tree t tree arg01 = fold_convert (sizetype, TREE_OPERAND (arg0, 1));

[Bug c/33122] Mistaken type mismatch error prevents bootstrap

2007-08-20 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-08-20 15:30 --- Reduced testcase: struct dis386 { const char *x; }; static const struct dis386 float_reg[][2] = { { { "fadd" }, { "fadd" } }, }; void foo(int i, int j) { const struct dis386 *dp; dp = &float_reg[i - 1][j]