------- Comment #2 from pinskia at gcc dot gnu dot org 2006-05-24 18:19 ------- > For the same reason __builtin_offsetof also hides the bug. Because it gets lowered correctly to a constant while "(intptr_t)(&(((struct A*)0x0)->mem1) )" is not a constant.
Why is someone using that method of offsetof? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27761