-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Clang crashes with consteval in front-end #59447
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
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
crash
Prefer [crash-on-valid] or [crash-on-invalid]
Comments
Trying to compile with assertions enabled gives the following assertion:
So, this is likely the same problem as #58207 . |
@llvm/issue-subscribers-clang-frontend |
creduce gave me this
So, this basically the same thing as #58207 . |
I have submitted https://reviews.llvm.org/D146234 , so let's close this one as well. |
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"
crash
Prefer [crash-on-valid] or [crash-on-invalid]
Note: I self-hosted my LLVM version compiled with itself. The first stage was built using LLVM 11.0.1, which was my previous installed version.
I followed the instructions at https://llvm.org/docs/HowToSubmitABug.html
-emit-llvm -Xclang -disable-llvm-passes
to the compiler arguments still crashed-emit-llvm
didn't crashopt -O3 foo.bc -disable-output
didn't crash eitherStack trace with
-march=native
(Intel Haswell) and-O3
:Stack trace without
-march
flag and-O0
:My only guess is
consteval
. Replacing all instances withconstexpr
makes the crash go away.I found the crash attempting to compile this project: https://github.com/RPCS3/rpcs3.git
0d929a210f33ea8fe18dcc3aa5291a9544b29cfc
The file https://github.com/RPCS3/rpcs3/blob/0d929a210f33ea8fe18dcc3aa5291a9544b29cfc/rpcs3/Loader/TRP.cpp is reliable to reproduce the crash on my system.
The included header file with the possible crashing
consteval
-> https://github.com/RPCS3/rpcs3/blob/0d929a210f33ea8fe18dcc3aa5291a9544b29cfc/rpcs3/util/types.hpp#L118 (search for__INTELLISENSE__
, about line 118). Enabling#define consteval constexpr
makes the crash go away. I couldn't test yet if the application still works as intended with this change.cpp and script files: crash.zip
EDIT: Application still works as intended with this change.
The text was updated successfully, but these errors were encountered: