-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Compiler crash specializing generics #78167
Comments
@TeamPuzel Can you please provide instructions on how to reproduce? I did not see the problem when I build with |
I was able to reproduce this using the CMake build (had to hack it up a bit to also avoid the missing SDL dependency), and then I found out it just boils down to compiling the first module (Core) and then the second one (Engine) that uses the first one:
|
There are not pre-specialized parts of the stdlib in embedded mode. Fixes a compiler crash. Unfortunately I con't have a test case for this. swiftlang#78167
This isn't intended to be built using Also note that you do need the specific commit I linked to. |
fixed with #78234 |
There are not pre-specialized parts of the stdlib in embedded mode. Fixes a compiler crash. Unfortunately I con't have a test case for this. swiftlang#78167
Description
The
copy
method seems to be at fault. It works fine if converted to use a concreteImage
and flattening in the convenience initializer instead of directly taking an arbitraryDrawable
. This is the first time I had such an issue with theDrawable
protocol.Reproduction
The source code is available here, and the link should point to a commit where I reintroduced the bug for this bug report
https://gitea.com/TeamPuzel/BlockGameSwift/commit/e521f5337f458a20a1e4a7178542a391e7219b3a
This is the class in question
This is the flatten signature in case it is relevant, as it is somewhat unusual
Stack dump
Expected behavior
The compiler should not crash.
Environment
Apple Swift version 6.2-dev (LLVM
4930d5a55e7728b
, Swiftec5bee8bc94399a
)Target: arm64-apple-macosx15.0
I tested with an older toolchain I have installed,
swift-DEVELOPMENT-SNAPSHOT-2024-10-30-a
which still crashesAdditional information
Relevant forum issue https://forums.swift.org/t/swift-has-no-ide-support-not-even-xcode-works/76508/36
Previous related bug #78150
The text was updated successfully, but these errors were encountered: