-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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 in -rewrite-legacy-objc #94380
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
crash
Prefer [crash-on-valid] or [crash-on-invalid]
objective-c
Comments
@llvm/issue-subscribers-clang-frontend Author: None (ethanc8)
Hi! I was trying to understand another compiler bug (I don't know enough about it to post here, but you can see symptoms at https://github.com/gnustep/libobjc2/issues/283) which occurred in the combination of the library [libs-quartzcore](https://github.com/ethanc8/libs-quartzcore) and parts of the application [GitUp](https://github.com/ethanc8/Gitup). I've attached the logs of the issue. The issue only occurred in `-rewrite-legacy-objc -fno-ms-extensions -fpermissive`. Under normal compilation, it compiled fine, and under `-rewrite-objc -fno-ms-extensions -fpermissive`, it returned errors because the code contained constructs only allowed in C and not in C++, such as assigning booleans (`BOOL`) to variables of type `struct objc_object*` (`id`) without a typecast.
CAAnimation-f7059d.m
|
CC @rjmccall |
Note that this is on Linux, using GNUstep. |
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]
objective-c
Hi! I was trying to understand another compiler bug (I don't know enough about it to post here, but you can see symptoms at gnustep/libobjc2#283) which occurred in the combination of the library libs-quartzcore and parts of the application GitUp. I've attached the logs of the issue. The issue only occurred in
-rewrite-legacy-objc -fno-ms-extensions -fpermissive
. Under normal compilation, it compiled fine, and under-rewrite-objc -fno-ms-extensions -fpermissive
, it returned errors because the code contained constructs only allowed in C and not in C++, such as assigning booleans (BOOL
) to variables of typestruct objc_object*
(id
) without a typecast.CAAnimation-f7059d.m
CAAnimation-f7059d.sh
The text was updated successfully, but these errors were encountered: