https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124148
--- Comment #8 from Yiwei Zhang <zzyiwei at gmail dot com> --- Sorry, one last question: Inside the sizeof_pnext helper, there's the sizeof_B_self function to access the pNext with the original type B, is it still valid for the compiler to DSE the initial pNext assignment? > ./gcc_dse.c.122t.dse2:76: Deleted dead store: a.pNext = &b; If so, the only solid workaround would be -fno-strict-aliasing
