Fix an assertion-on-error during tentative constructor parsing by
propagating error conditions out of the various annotate-me-a-snowflake routines. Generally (but not universally) removes redundant diagnostics as well as, you know, not crashing on bad code. On the other hand, I have just signed myself up to fix fiddly parser errors for the next week. Again. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97221 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Parse/Parser.h 3 additions, 3 deletionsinclude/clang/Parse/Parser.h
- lib/Parse/ParseDecl.cpp 60 additions, 36 deletionslib/Parse/ParseDecl.cpp
- lib/Parse/ParseDeclCXX.cpp 3 additions, 2 deletionslib/Parse/ParseDeclCXX.cpp
- lib/Parse/ParseExpr.cpp 5 additions, 1 deletionlib/Parse/ParseExpr.cpp
- lib/Parse/ParseExprCXX.cpp 8 additions, 8 deletionslib/Parse/ParseExprCXX.cpp
- lib/Parse/ParseTentative.cpp 11 additions, 8 deletionslib/Parse/ParseTentative.cpp
- lib/Parse/Parser.cpp 20 additions, 20 deletionslib/Parse/Parser.cpp
- test/CXX/temp/temp.fct.spec/temp.arg.explicit/p3-nodeduct.cpp 1 addition, 2 deletions.../CXX/temp/temp.fct.spec/temp.arg.explicit/p3-nodeduct.cpp
- test/Parser/cxx-template-argument.cpp 1 addition, 1 deletiontest/Parser/cxx-template-argument.cpp
- test/SemaCXX/member-pointer.cpp 1 addition, 2 deletionstest/SemaCXX/member-pointer.cpp
- test/SemaCXX/nested-name-spec.cpp 3 additions, 2 deletionstest/SemaCXX/nested-name-spec.cpp
- test/SemaTemplate/dependent-base-classes.cpp 0 additions, 1 deletiontest/SemaTemplate/dependent-base-classes.cpp
- test/SemaTemplate/explicit-specialization-member.cpp 1 addition, 1 deletiontest/SemaTemplate/explicit-specialization-member.cpp
- test/SemaTemplate/nested-name-spec-template.cpp 0 additions, 1 deletiontest/SemaTemplate/nested-name-spec-template.cpp
- test/SemaTemplate/temp_arg.cpp 7 additions, 0 deletionstest/SemaTemplate/temp_arg.cpp
Loading
Please register or sign in to comment