Undefined behaviour: ri
and rri
are both initialised to refer to a member of a temporary, which is immediately destroyed.
The dangling reference points to some bit of memory which might be reused by another object, in which case you might see data from that object. Or you might see some other kind of undefined behaviour.