summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/DeclSpec.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-06 19:08:11 +0000
committerChris Lattner <sabre@nondot.org>2009-12-06 19:08:11 +0000
commit71d5bf1c5d740b6a80b30a4054e135fa706d7b96 (patch)
tree604de600045c4bc4252a4432d7e2e50c336d684a /clang/lib/Parse/DeclSpec.cpp
parent8c56c49fe0d8a5a4725cc7321bd47b21aa964588 (diff)
downloadbcm5719-llvm-71d5bf1c5d740b6a80b30a4054e135fa706d7b96.tar.gz
bcm5719-llvm-71d5bf1c5d740b6a80b30a4054e135fa706d7b96.zip
implement PR4451, improving error recovery for a mistaken : where a :: was
intended. On the first testcase in the bug, we now produce: cxx-decl.cpp:12:2: error: unexpected ':' in nested name specifier y:a a2; ^ :: instead of: t.cc:8:1: error: C++ requires a type specifier for all declarations x:a a2; ^ t.cc:8:2: error: invalid token after top level declarator x:a a2; ^ ; t.cc:9:11: error: use of undeclared identifier 'a2' x::a a3 = a2; ^ llvm-svn: 90713
Diffstat (limited to 'clang/lib/Parse/DeclSpec.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud