]> granicus.if.org Git - clang/commit
constexpr: static data members declared constexpr are required to have an
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 7 Nov 2011 22:16:17 +0000 (22:16 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 7 Nov 2011 22:16:17 +0000 (22:16 +0000)
commit66f85713bd0d22f867efa8e9fb0037befdd6b151
treec0d06e5bda333ee32210eabdfac012b0e1554f0d
parent45fa560c72441069d9e4eb1e66efd87349caa552
constexpr: static data members declared constexpr are required to have an
initializer; all other constexpr variables are merely required to be
initialized. In particular, a user-provided constexpr default constructor can be
used for such initialization.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144028 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
test/CXX/class/class.static/class.static.data/p3.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p1.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p9.cpp