https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88897
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Some of the time, the uninitialized is due to using the object after the lifetime of the object has gone out of scope. I have not checked if that is the case here but I would not be suprised.