gcc should (I think) be warning about this anyway, but seems to do so only when assertions are enabled for this object.