https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50986
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- How clang fixes this is by putting the global initializer for U<S>::k (in TU2) in the same comdat section as the non-readonly case.