diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-11-06 15:59:35 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-11-06 15:59:35 +0000 |
commit | d93f0ddba0965ded252e228134b30ce30e863fb0 (patch) | |
tree | 94241b20ebda32370cae324a5fdb17a2cb34a584 /include/clang/Basic | |
parent | 85bb3dad385e9c2a57cf5aa2d2116d8381953a5a (diff) |
Sema-check virtual declarations. Complete dynamic_cast checking.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58804 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r-- | include/clang/Basic/DiagnosticKinds.def | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticKinds.def b/include/clang/Basic/DiagnosticKinds.def index 1972716e1d..fedee73b9c 100644 --- a/include/clang/Basic/DiagnosticKinds.def +++ b/include/clang/Basic/DiagnosticKinds.def @@ -667,6 +667,8 @@ DIAG(err_bad_language, ERROR, // C++ class members DIAG(err_storageclass_invalid_for_member, ERROR, "storage class specified for a member declaration") +DIAG(err_virtual_non_function, ERROR, + "'virtual' can only appear on non-static member functions") DIAG(err_not_bitfield_type, ERROR, "cannot declare '%0' to be a bit-field type") DIAG(err_static_not_bitfield, ERROR, @@ -1142,6 +1144,8 @@ DIAG(err_bad_dynamic_cast_incomplete, ERROR, "'%0' is incomplete") DIAG(err_bad_dynamic_cast_not_ptr, ERROR, "'%0' is not a pointer") +DIAG(err_bad_dynamic_cast_not_polymorphic, ERROR, + "'%0' is not polymorphic") DIAG(err_invalid_use_of_function_type, ERROR, "a function type is not allowed here") |