https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115781 --- Comment #8 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- ... or rather, the calculation needs to be done with the contents of x->_data and not with x directly.