Revert r325375 "[MS] Make constexpr static data members implicitly inline"
authorHans Wennborg <hans@hanshq.net>
Tue, 20 Feb 2018 12:43:02 +0000 (12:43 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 20 Feb 2018 12:43:02 +0000 (12:43 +0000)
commitb18da9b12211443ac72e1668fde5f18b626a17f7
treeb5e149310c03dbe102a591dbe23d12179b8dcc17
parent124a2187adcb774d6b1806172f351d968dd39190
Revert r325375 "[MS] Make constexpr static data members implicitly inline"

This broke Clang bootstrap on Windows, PR36453.

> This handles them exactly the same way that we handle const integral
> static data members with inline definitions, which is what MSVC does.
>
> As a follow-up, now that we have a way to mark variables inline in the
> AST, we should consider marking them implicitly inline there instead of
> only treating them as inline in CodeGen. Unfortunately, this breaks a
> lot of dllimport test cases, so that is future work for now.
>
> Fixes PR36125.

llvm-svn: 325576
clang/lib/AST/ASTContext.cpp
clang/test/CodeGenCXX/static-data-member.cpp