Give a more informative error message when the dot or arrow operator is used
authorRichard Trieu <rtrieu@google.com>
Sat, 26 Jan 2013 02:31:38 +0000 (02:31 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 26 Jan 2013 02:31:38 +0000 (02:31 +0000)
commit9c67267a7bcedd38ceb0b38719f4008f57bb0039
treea3a983ef82c56f33cca648dda42e68857edaac49
parent2995077d8acb87f68b32f4d5369e741ed4d5b6e9
Give a more informative error message when the dot or arrow operator is used
on a type.  Currently, it gives a generic "expected unqualified-id" error.
The new error message is "cannot use (dot|arrow) operator on a type".

llvm-svn: 173556
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/lib/Parse/ParseDecl.cpp
clang/test/Parser/cxx-decl.cpp