https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118722
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #3 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- Even if an earlier standard version is used where no such special case exists, an ODR violation is still an undefined behavior for which the compiler can do any thing, including rejecting it or doing something happens to satisfy your needs. Neither behavior is a bug, so both the link error report and this report are invalid.