Audit uses of Sema::LookupSingleName for those lookups that are
intended for redeclarations, fixing those that need it. Fixes PR6831. This uncovered an issue where the C++ type-specifier-seq parsing logic would try to perform name lookup on an identifier after it already had a type-specifier, which could also lead to spurious ambiguity errors (as in PR6831, but with a different test case). llvm-svn: 101419
Showing
- clang/lib/Parse/ParseDecl.cpp 5 additions, 0 deletionsclang/lib/Parse/ParseDecl.cpp
- clang/lib/Sema/SemaDeclCXX.cpp 2 additions, 1 deletionclang/lib/Sema/SemaDeclCXX.cpp
- clang/lib/Sema/SemaDeclObjC.cpp 7 additions, 12 deletionsclang/lib/Sema/SemaDeclObjC.cpp
- clang/lib/Sema/SemaTemplate.cpp 4 additions, 2 deletionsclang/lib/Sema/SemaTemplate.cpp
- clang/test/CXX/temp/temp.param/p3.cpp 12 additions, 0 deletionsclang/test/CXX/temp/temp.param/p3.cpp
- clang/test/SemaCXX/exceptions.cpp 13 additions, 0 deletionsclang/test/SemaCXX/exceptions.cpp
Loading
Please register or sign in to comment