http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51741
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-03 15:18:34 UTC --- as soon as you cast the .where pointer to some other type it converts to an rvalue. Use (knot*)&(....where) instead of &(knot *)(...where).