When disambiguating an expression-statement from a declaraton-statement, if the
statement starts with an identifier for which name lookup will fail either way, look at later tokens to disambiguate in order to improve error recovery. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162464 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Parse/ParseTentative.cpp 29 additions, 10 deletionslib/Parse/ParseTentative.cpp
- test/CXX/class.access/class.friend/p1.cpp 4 additions, 4 deletionstest/CXX/class.access/class.friend/p1.cpp
- test/Modules/module-private.cpp 5 additions, 2 deletionstest/Modules/module-private.cpp
- test/Parser/cxx-ambig-decl-expr.cpp 3 additions, 0 deletionstest/Parser/cxx-ambig-decl-expr.cpp
- test/SemaObjCXX/category-lookup.mm 1 addition, 1 deletiontest/SemaObjCXX/category-lookup.mm
Loading
Please register or sign in to comment