https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118722
--- Comment #4 from mauro russo <ing.russomauro at gmail dot com> --- > an ODR violation is still an undefined behavior That's interesting, I supposed this was only for the case of multiple/different definitions.