https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84562
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |hubicka at gcc dot gnu.org, | |rguenth at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Note I think all cases are on the border of being invalid. In C++ the ODR forbids interposition with "different" objects. You simply have to ensure to provide compatible definitions when interposing others.