[PATCH] D47956: [MS] Consder constexpr globals to be inline, as in C++17

Reid Kleckner via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 20 16:14:52 PDT 2018


rnk added a comment.

In https://reviews.llvm.org/D47956#1138521, @rsmith wrote:

> Can we now remove the corresponding MSVC-specific hacks elsewhere (eg, `ASTContext::isMSStaticDataMemberInlineDefinition`), or do we still need those for `const`-but-not-`constexpr` static data members?


We should be able to do that, but unfortunately it drastically changes the diagnostics we emit, as you can see from the tortured ifdefs in my test case updates. I gave up before attempting it.


https://reviews.llvm.org/D47956





More information about the cfe-commits mailing list