[clang] [clang][ExprConstant] Fix error on static constexpr symbol in dllimport function (PR #171628)
Hans Wennborg via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 12 01:18:35 PST 2025
https://github.com/zmodem commented:
Hmm, I haven't thought deeply about these kinds of things in a while, so I'm struggling to wrap my head around this.
> I think it's fine to accept the example above since the body of the function will be discarded anyway; and the inlined version of the function will contain a reference to the imported function-static symbol, like MSVC does
Why does it matter whether the function gets inlined or not?
Despite the `__forceinline` I don't think it's guaranteed to get inlined, and in your change to ExprConstant.cpp, you're not checking for it anyway?
https://github.com/llvm/llvm-project/pull/171628
More information about the cfe-commits
mailing list