summaryrefslogtreecommitdiffstats
path: root/clang/include
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2009-02-07 00:41:42 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2009-02-07 00:41:42 +0000
commit9c3b4b1bc5182046e07e25c2850bfb6b2cffd4d0 (patch)
tree2e6e82458015e4fab3cce2735de81d6a46f8ceb4 /clang/include
parentd404862cf9d92f5212db97c558241f78d141249b (diff)
downloadbcm5719-llvm-9c3b4b1bc5182046e07e25c2850bfb6b2cffd4d0.tar.gz
bcm5719-llvm-9c3b4b1bc5182046e07e25c2850bfb6b2cffd4d0.zip
Add negative test cases and fix diagnostics for member pointer dereferencing.
llvm-svn: 63987
Diffstat (limited to 'clang/include')
-rw-r--r--clang/include/clang/Basic/DiagnosticSemaKinds.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.def b/clang/include/clang/Basic/DiagnosticSemaKinds.def
index 298e0fe2727..a18ed966f3b 100644
--- a/clang/include/clang/Basic/DiagnosticSemaKinds.def
+++ b/clang/include/clang/Basic/DiagnosticSemaKinds.def
@@ -867,8 +867,8 @@ DIAG(err_bad_memptr_rhs, ERROR,
"right hand operand to %0 must be a pointer to member of a complete class "
"but is %1")
DIAG(err_bad_memptr_lhs, ERROR,
- "left hand operand to ->* must be a %select{|pointer to }0class "
- "compatible with the right hand operand, but is %1")
+ "left hand operand to %0 must be a %select{|pointer to }1class "
+ "compatible with the right hand operand, but is %2")
DIAG(err_invalid_use_of_function_type, ERROR,
"a function type is not allowed here")
OpenPOWER on IntegriCloud