When finding a '(' after '::', emit error with hint to remove '(' and matching
authorRichard Trieu <rtrieu@google.com>
Fri, 2 Nov 2012 01:08:58 +0000 (01:08 +0000)
committerRichard Trieu <rtrieu@google.com>
Fri, 2 Nov 2012 01:08:58 +0000 (01:08 +0000)
commit1f3ea7b6b5ca02b18af414083eb4b9599ea3a946
tree80eebbe62ebcdd397b1fc2ee4689536ee8897358
parente7a91689083d672212e461cde855bd950a3e8315
When finding a '(' after '::', emit error with hint to remove '(' and matching
')', if found.  Don't crash.
Fixes PR11852.

llvm-svn: 167268
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/include/clang/Parse/Parser.h
clang/lib/Parse/ParseExprCXX.cpp
clang/test/Parser/colon-colon-parentheses.cpp [new file with mode: 0644]