]> granicus.if.org Git - clang/commit
For better compatibility with C++11 and C++14, emit a nondiscardable definition
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 23 Oct 2017 03:58:34 +0000 (03:58 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 23 Oct 2017 03:58:34 +0000 (03:58 +0000)
commitef34bcb258ffbf7a500bb715edced98fe6348676
tree2ea287e3d5cabf4f5f17f64dd41c082b44acb4d4
parent45fcc58b7d3b7aba80c42141035900ebc5c19dfd
For better compatibility with C++11 and C++14, emit a nondiscardable definition
of a static constexpr data member if it's defined 'constexpr' out of line, not
only if it's defined 'constexpr' in the class.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316310 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
test/CodeGenCXX/cxx1z-inline-variables.cpp