[Bug middle-end/41935] ICE : tree check: expected integer_cst, have nop_expr in int_cst_value, at tree.c:8301

2009-11-06 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2009-11-06 08:33 --- *** Bug 41945 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/41935] ICE : tree check: expected integer_cst, have nop_expr in int_cst_value, at tree.c:8301

2009-11-04 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2009-11-04 09:27 --- Seems to be caused by the PR38699 changes. Looking into it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41935

[Bug middle-end/41935] ICE : tree check: expected integer_cst, have nop_expr in int_cst_value, at tree.c:8301

2009-11-04 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2009-11-04 09:35 --- Shorter testcase: /* PR middle-end/41935 */ extern void abort (void); struct A { int a; int b[10]; }; int foo (struct A *p) { return __builtin_offsetof (struct A, b[p-a]); } int main () { struct A a; a.a = 7;

[Bug middle-end/41935] ICE : tree check: expected integer_cst, have nop_expr in int_cst_value, at tree.c:8301

2009-11-04 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2009-11-04 10:37 --- Created an attachment (id=18962) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18962action=view) gcc45-pr41935.patch Patch I'm going to bootstrap/regtest. --

[Bug middle-end/41935] ICE : tree check: expected integer_cst, have nop_expr in int_cst_value, at tree.c:8301

2009-11-03 Thread linuxl4 at sohu dot com
--- Comment #1 from linuxl4 at sohu dot com 2009-11-04 07:29 --- Created an attachment (id=18961) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18961action=view) the source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41935