[clang] [MS] Put dllexported inline global initializers in a comdat (PR #107154)

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 3 16:04:12 PDT 2024


rnk wrote:

I think there is no change here in our conformance on inline variable initialization order, except that non-discardable inline variables (achieved in this instance with dllexport, but perhaps there are other ways to do this. The classic case is explicit instantiation, which is unordered) are now treated the same as regular inline variables.

My reading of the code is that we are currently technically non-conforming. There is some back and forth on whether this is good or bad elsewhere in the issue tracker, but I'd have to dig it up.

https://github.com/llvm/llvm-project/pull/107154


More information about the cfe-commits mailing list