]> granicus.if.org Git - clang/commit
constexpr: don't consider class types with mutable members to be literal types.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 12 Oct 2011 05:08:15 +0000 (05:08 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 12 Oct 2011 05:08:15 +0000 (05:08 +0000)
commit5fa6a0422f12216d549d0f2991a29d5690634065
treef7ff1a70a40287cd2027094a4d059fb8fd4bc54a
parentc6bfbca5733f1fc090b2149c4fff0548f1f15526
constexpr: don't consider class types with mutable members to be literal types.

The standard doesn't allow this, but mutable constexpr variables break the
semantics so badly that we can't reasonably accept them.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141768 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/DeclCXX.cpp
lib/Sema/SemaType.cpp
test/CXX/basic/basic.types/p10.cpp