-
Notifications
You must be signed in to change notification settings - Fork 12k
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
[Clang][Crash] Assertion failure in Clang 18 when using pre-increment operator on _Complex double
struct fields
#86904
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
constexpr
Anything related to constant evaluation
crash
Prefer [crash-on-valid] or [crash-on-invalid]
Comments
github-actions
bot
added
the
clang
Clang issues not falling into any other category
label
Mar 28, 2024
EugeneZelenko
added
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
crash
Prefer [crash-on-valid] or [crash-on-invalid]
and removed
clang
Clang issues not falling into any other category
labels
Mar 28, 2024
@llvm/issue-subscribers-clang-frontend Author: wt.cc (wierton)
Compiler Explorer: https://gcc.godbolt.org/z/7rTbaPrGE
The reproducer:
When compile it with
|
Confirmed Maybe related: #69345 |
if (!O->isStruct() && !O->isUnion()) {
return handler.failed();
} llvm-project/clang/lib/AST/ExprConstant.cpp Lines 3846 to 3866 in 09f160c
Maybe need to check before getting fields. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
constexpr
Anything related to constant evaluation
crash
Prefer [crash-on-valid] or [crash-on-invalid]
Compiler Explorer: https://gcc.godbolt.org/z/7rTbaPrGE
The reproducer:
When compile it with
clang-18 -O0
, clang-18 outputs:The text was updated successfully, but these errors were encountered: