summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/DiagnosticASTKinds.td
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-02-08 08:11:33 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-02-08 08:11:33 +0000
commit2fd5983e0da447291a651a347c206aee37a1de5f (patch)
tree99be68f5832576df228e2736d86c27a4e4d212fe /include/clang/Basic/DiagnosticASTKinds.td
parentcfa8e6530dbc5ed6147281be78bc319dea928d76 (diff)
Implement DR1458: Taking the address of an object of incomplete class type is
not a constant expression, because we can't tell whether the complete class type will have an overloaded operator&. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticASTKinds.td')
-rw-r--r--include/clang/Basic/DiagnosticASTKinds.td3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticASTKinds.td b/include/clang/Basic/DiagnosticASTKinds.td
index 9e4b63cfe8..978df36f9f 100644
--- a/include/clang/Basic/DiagnosticASTKinds.td
+++ b/include/clang/Basic/DiagnosticASTKinds.td
@@ -55,6 +55,9 @@ def note_constexpr_pointer_comparison_differing_access : Note<
"specifiers (%1 vs %3) has unspecified value">;
def note_constexpr_compare_virtual_mem_ptr : Note<
"comparison of pointer to virtual member function %0 has unspecified value">;
+def note_constexpr_addr_of_incomplete : Note<
+ "cannot take address of object of incomplete class type %0 "
+ "in a constant expression">;
def note_constexpr_past_end : Note<
"dereferenced pointer past the end of %select{|subobject of }0"
"%select{temporary|%2}1 is not a constant expression">;