[Bug middle-end/41935] ICE : tree check: expected integer_cst, have nop_expr in int_cst_value, at tree.c:8301
--- 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 CC||jengelh at medozas dot de 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
--- 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
--- 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; if (foo (a) != 7 * sizeof (int) + __builtin_offsetof (struct A, b)) abort (); a.a = 2; if (foo (a) != 2 * sizeof (int) + __builtin_offsetof (struct A, b)) abort (); return 0; } -- jakub at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org | Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2009-11-04 09:35:32 date|| 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
--- 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. -- 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
--- 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