llvm-project/clang/lib/Parse
Alexey Bataev 2f7269b677 Fix compiler crash when an expression parsed in the tentative parsing and must be claimed in the another evaluation context.
Summary:
Clang crashes when trying to finish function body. MaybeODRUseExprs is
not empty because of const static data member parsed in outer evaluation
context, upon call for isTypeIdInParens() function. It builds
annot_primary_expr, later parsed in ParseConstantExpression() in
inner constant expression evaluation context.

Reviewers: rjmccall, rsmith

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D80925
2020-06-02 14:27:33 -04:00
..
CMakeLists.txt [OpenMP][NFCI] Introduce llvm/IR/OpenMPConstants.h 2019-12-10 00:10:09 -06:00
ParseAST.cpp [Support] Add TimeTraceScope constructor without detail arg 2019-12-11 14:32:21 +00:00
ParseCXXInlineMethods.cpp Improve recovery from invalid template-ids. 2020-03-27 17:11:04 -07:00
ParseDecl.cpp Enforce the C++11 anonymous enum bitfields check even for 2020-05-10 14:03:50 -07:00
ParseDeclCXX.cpp Fix parsing of enum-base to follow C++11 rules. 2020-05-08 19:32:00 -07:00
ParseExpr.cpp Fix compiler crash when an expression parsed in the tentative parsing and must be claimed in the another evaluation context. 2020-06-02 14:27:33 -04:00
ParseExprCXX.cpp [OpenCL] Added addrspace_cast operator in C++ mode. 2020-05-18 12:07:54 +01:00
ParseInit.cpp [clang][CodeComplete] Support for designated initializers 2020-01-28 16:34:15 +01:00
ParseObjc.cpp [NFC] Refactoring PropertyAttributeKind for ObjCPropertyDecl and ObjCDeclSpec. 2020-04-23 17:21:25 -04:00
ParseOpenMP.cpp [OPENMP50]Initial support for use_device_addr clause. 2020-05-27 11:35:31 -04:00
ParsePragma.cpp [Clang][Sema] Capturing section type conflicts on #pragma clang section 2020-05-07 11:53:30 +01:00
ParseStmt.cpp Reapply "Add support for #pragma float_control" with buildbot fixes 2020-05-04 05:51:25 -07:00
ParseStmtAsm.cpp [clang][asm goto][slh] Warn if asm goto + SLH 2020-05-20 09:46:18 -07:00
ParseTemplate.cpp C++2a -> C++20 in some identifiers; NFC. 2020-04-21 15:37:19 -04:00
ParseTentative.cpp Fix compiler crash when an expression parsed in the tentative parsing and must be claimed in the another evaluation context. 2020-06-02 14:27:33 -04:00
Parser.cpp Fix compiler crash when an expression parsed in the tentative parsing and must be claimed in the another evaluation context. 2020-06-02 14:27:33 -04:00