https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70018
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- In C++ code, the one definition rule says that all TU that contains an inline function, they need to have the same definition. If they have different definition, then the code is undefined at runtime and no diagnostic is required.