-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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-19 crash:/lib/AST/ExprConstant.cpp:1633: void {anonymous}::LValue::setFrom(clang::ASTContext&, const clang::APValue&): Assertion `V.isLValue() && "Setting LValue from a non-LValue?"' failed. #95366
Comments
The code looks really weird to me; did you get the code from a fuzzer or from a reduction of something? |
The code snippet is obtained from a previous report that caused a compiler crash. After being processed by Creduce, it may indeed be a bit odd. |
This is actually a crash-on-valid though the code from the OP is invalid. Here's a repaired example that still crashes:
|
The LHS of the
but evaluating the llvm-project/clang/lib/AST/ExprConstant.cpp Lines 9318 to 9331 in ae73706
|
Seems like we should just do a |
Hi! This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below. |
@llvm/issue-subscribers-good-first-issue Author: Anonymous (iamanonymouscs)
### Description:
Encountered a segmentation fault (core dumped) error while compiling a C code snippet using Clang version 19.0.0 on Ubuntu.
The code snippet includes a function definition with a complex expression involving GNU extensions.
Also ICE on trunk, compiler explorer:https:https://godbolt.org/z/sc38GbqW4 OS and Platform:
Program:
Command Lines:
|
@llvm/issue-subscribers-clang-frontend Author: Anonymous (iamanonymouscs)
### Description:
Encountered a segmentation fault (core dumped) error while compiling a C code snippet using Clang version 19.0.0 on Ubuntu.
The code snippet includes a function definition with a complex expression involving GNU extensions.
Also ICE on trunk, compiler explorer:https:https://godbolt.org/z/sc38GbqW4 OS and Platform:
Program:
Command Lines:
|
Can I be assigned to this issue? |
Description:
Encountered a segmentation fault (core dumped) error while compiling a C code snippet using Clang version 19.0.0 on Ubuntu.
The code snippet includes a function definition with a complex expression involving GNU extensions.
Also ICE on trunk, compiler explorer:https:https://godbolt.org/z/sc38GbqW4
OS and Platform:
Program:
Command Lines:
The text was updated successfully, but these errors were encountered: