diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-10-10 22:31:17 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-10-10 22:31:17 +0000 |
commit | 005fa4c20da15aede1303138bb0ea0b32f8fb31a (patch) | |
tree | 5ead5cafd46779bcea6e88aa7cc4e46eaa11fb91 /include | |
parent | dea3d1b9fed4a2c2ede2976abc2baba61bd85ac2 (diff) | |
download | clang-005fa4c20da15aede1303138bb0ea0b32f8fb31a.tar.gz |
PR43629: Fix crash evaluating constexpr placement new on a subobject of
an out-of-lifetime object.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374465 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Basic/DiagnosticASTKinds.td | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Basic/DiagnosticASTKinds.td b/include/clang/Basic/DiagnosticASTKinds.td index 63207a0e22..04d767445a 100644 --- a/include/clang/Basic/DiagnosticASTKinds.td +++ b/include/clang/Basic/DiagnosticASTKinds.td @@ -126,7 +126,8 @@ def note_constexpr_lifetime_ended : Note< "%plural{8:storage duration|:lifetime}0 has ended">; def note_constexpr_access_uninit : Note< "%select{read of|read of|assignment to|increment of|decrement of|" - "member call on|dynamic_cast of|typeid applied to|<ERRPR>|destruction of}0 " + "member call on|dynamic_cast of|typeid applied to|" + "construction of subobject of|destruction of}0 " "%select{object outside its lifetime|uninitialized object}1 " "is not allowed in a constant expression">; def note_constexpr_use_uninit_reference : Note< |