You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm trying to initialize a web of constinit objects which refer to each other (cyclically..., trying to migrate some legacy code to the data segment as much as possible) and running into an issue with clang-cl when I try and do this across dll boundaries. MSVC, clang-linux and gcc-linux accept the construction of one constinit object with a pointer to another in another dll/so, but clang-cl rejects it as not a constant expression.
Possible duplicate of these issues, posting separately because initializing a constinit variable might be considered more worthy of the necessary fixups during the dll initialization. #125952 #50900