https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114206
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code CC| |xry111 at gcc dot gnu.org --- Comment #4 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #1) > I think both 0 and 1 are correct here. > > The question becomes does the address of b need to be different between > different calls of f. I am not 100% convinced it needs to be different. It looks like they needs to be different as they refer different objects and the lifetime of both object has still not ended when comparing them.