--- 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
--- 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
--- 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;
--- 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.
--
--- 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