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
[SR-13972] Crash in emitDirectTypeMetadataRef -- trivial repro case #56367
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
IRGen
LLVM IR generation
opaque result types
Feature → types → opaque types: opaque result types
opaque types
Feature → types: opaque types
Self in class
Feature → types: The 'Self' type in classes
swift 5.3
Comments
@swift-ci create |
slavapestov
added a commit
to slavapestov/swift
that referenced
this issue
Jul 13, 2022
This cannot be represented in the ABI because we expect that the opaque return type can be instantiated from the generic arguments of its declaring context. Reconstructing type metadata for the DynamicSelfType would require opaque return type instantiation to also take the self *value*. Fixes rdar://72407668 / apple#56367
slavapestov
added a commit
to slavapestov/swift
that referenced
this issue
Jul 13, 2022
This cannot be represented in the ABI because we expect that the opaque return type can be instantiated from the generic arguments of its declaring context. Reconstructing type metadata for the DynamicSelfType would require opaque return type instantiation to also take the self *value*. Fixes rdar://72407668 / apple#56367
slavapestov
added a commit
to slavapestov/swift
that referenced
this issue
Jul 13, 2022
This cannot be represented in the ABI because we expect that the opaque return type can be instantiated from the generic arguments of its declaring context. Reconstructing type metadata for the DynamicSelfType would require opaque return type instantiation to also take the self *value*. Fixes rdar://72407668 / apple#56367
slavapestov
added a commit
to slavapestov/swift
that referenced
this issue
Jul 14, 2022
This cannot be represented in the ABI because we expect that the opaque return type can be instantiated from the generic arguments of its declaring context. Reconstructing type metadata for the DynamicSelfType would require opaque return type instantiation to also take the self *value*. Fixes rdar://72407668 / apple#56367
slavapestov
added a commit
to slavapestov/swift
that referenced
this issue
Jul 20, 2022
This cannot be represented in the ABI because we expect that the opaque return type can be instantiated from the generic arguments of its declaring context. Reconstructing type metadata for the DynamicSelfType would require opaque return type instantiation to also take the self *value*. Fixes rdar://72407668 / apple#56367
Catfish-Man
pushed a commit
to Catfish-Man/swift
that referenced
this issue
Jul 28, 2022
This cannot be represented in the ABI because we expect that the opaque return type can be instantiated from the generic arguments of its declaring context. Reconstructing type metadata for the DynamicSelfType would require opaque return type instantiation to also take the self *value*. Fixes rdar://72407668 / apple#56367
AnthonyLatsis
added
swift 5.3
Self in class
Feature → types: The 'Self' type in classes
opaque result types
Feature → types → opaque types: opaque result types
opaque types
Feature → types: opaque types
labels
Apr 3, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
IRGen
LLVM IR generation
opaque result types
Feature → types → opaque types: opaque result types
opaque types
Feature → types: opaque types
Self in class
Feature → types: The 'Self' type in classes
swift 5.3
Attachment: Download
Environment
MacOS: 11.1 (20C69)
Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)
Target: x86_64-apple-darwin20.2.0
Additional Detail from JIRA
md5: 2693568d8a0ddefb32d72affc752b757
Issue Description:
The attached project with 2 source files consistently crashes the swift compiler.
To repeat:
cd SILCrash
swift build
The text was updated successfully, but these errors were encountered: