New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICE: {anonymous}::CastOperation::CheckCStyleCast(): Assertion `(DestType->containsErrors() || SrcExpr.get()->containsErrors() || SrcExpr.get()->containsErrors()) && "should only occur in error-recovery path."' failed. #50236
Closed
Labels
bugzilla
Issues migrated from bugzilla
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
crash-on-invalid
Comments
Endilll
added
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
crash-on-invalid
confirmed
Verified by a second party
and removed
clang
Clang issues not falling into any other category
labels
Jun 5, 2023
Assertions build is still crashing: https://godbolt.org/z/n6jTbEW48
Assertion:
Stack:
|
@llvm/issue-subscribers-clang-frontend |
freebsd-git
pushed a commit
to freebsd/freebsd-src
that referenced
this issue
Jul 19, 2023
[clang][AST] Propagate the contains-errors bit to DeclRefExpr from VarDecl's initializer. Similar to the https://reviews.llvm.org/D86048 (it only sets the bit for C++ code), we propagate the contains-errors bit for C-code path. Fixes llvm/llvm-project#50236 Fixes llvm/llvm-project#50243 Fixes llvm/llvm-project#48636 Fixes llvm/llvm-project#50320 Differential Revision: https://reviews.llvm.org/D154861 This fixes an assertion ('Assertion failed: ((LHSExpr->containsErrors() || RHSExpr->containsErrors()) && "Should only occur in error-recovery path."), function BuildBinOp') when building parts of dtrace in certain scenarios. Reported by: dstolfa PR: 271047 MFC after: 1 month
freebsd-git
pushed a commit
to freebsd/freebsd-src
that referenced
this issue
Jul 23, 2023
[clang][AST] Propagate the contains-errors bit to DeclRefExpr from VarDecl's initializer. Similar to the https://reviews.llvm.org/D86048 (it only sets the bit for C++ code), we propagate the contains-errors bit for C-code path. Fixes llvm/llvm-project#50236 Fixes llvm/llvm-project#50243 Fixes llvm/llvm-project#48636 Fixes llvm/llvm-project#50320 Differential Revision: https://reviews.llvm.org/D154861 This fixes an assertion ('Assertion failed: ((LHSExpr->containsErrors() || RHSExpr->containsErrors()) && "Should only occur in error-recovery path."), function BuildBinOp') when building parts of dtrace in certain scenarios. Reported by: dstolfa PR: 271047 MFC after: 1 month (cherry picked from commit 8d0cab8)
bsdjhb
pushed a commit
to bsdjhb/cheribsd
that referenced
this issue
Sep 6, 2023
[clang][AST] Propagate the contains-errors bit to DeclRefExpr from VarDecl's initializer. Similar to the https://reviews.llvm.org/D86048 (it only sets the bit for C++ code), we propagate the contains-errors bit for C-code path. Fixes llvm/llvm-project#50236 Fixes llvm/llvm-project#50243 Fixes llvm/llvm-project#48636 Fixes llvm/llvm-project#50320 Differential Revision: https://reviews.llvm.org/D154861 This fixes an assertion ('Assertion failed: ((LHSExpr->containsErrors() || RHSExpr->containsErrors()) && "Should only occur in error-recovery path."), function BuildBinOp') when building parts of dtrace in certain scenarios. Reported by: dstolfa PR: 271047 MFC after: 1 month
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bugzilla
Issues migrated from bugzilla
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
crash-on-invalid
Extended Description
$ clang-trunk -v
$ cat mutant.c
$ clang-trunk mutant.c
The text was updated successfully, but these errors were encountered: