-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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-18 crash when compiled with -c. #74464
Comments
@llvm/issue-subscribers-clang-codegen Author: Anonymous (iamanonymouscs)
Clang-18 with -c crashes on the test case.
Compiler explorer: https://godbolt.org/z/KP9xxjE7e
```
$cat mutant.c
extern char x[], y[], z[];
void $clang-18 -c mutant.c
#0 0x00007fa71a5f7266 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/llvm-18/bin/../lib/libLLVM-18.so.1+0xd2b266) PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
|
What is the expected behavior? GCC produces an error while MSVC can compile successfully. |
make sure the args of __atomic_exchange is complete type, make it consistent with GCC issue: llvm#74464
Clang-18 with -c crashes on the test case.
Compiler explorer: https://godbolt.org/z/KP9xxjE7e
The text was updated successfully, but these errors were encountered: