You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Swift 5.5 DEVELOPMENT-SNAPSHOT-2021-07-08-a toolchain
macOS 11.4
Xcode 12.5.1
Additional Detail from JIRA
Votes
0
Component/s
Compiler
Labels
Bug
Assignee
None
Priority
Medium
md5: 918e2de26136e1625b2ce86265799e9f
Issue Description:
Using Swift 5.5 DEVELOPMENT-SNAPSHOT-2021-07-08-a and a class with a trivial initializer marked async, swift fails with an assertion when -enable-testing is passed to the compiler:
Assertion failed: (!isa<ConstructorDecl>(decl)), function appendEntity, file /Users/buildnode/jenkins/workspace/oss-swift-5.5-package-macos/swift/lib/AST/ASTMangler.cpp, line 3004.
A seemingly-valid .o file is generated if the "-enable-testing" is removed from the compiler invocation.
The text was updated successfully, but these errors were encountered:
Discovered while attempting to reproduce with the 2021-07-17 toolchain:
The crash in 2021-07-08 is also squelched by '-validate-tbd-against-ir=none'.
(Note that with the newer swift-5.5-DEVELOPMENT-SNAPSHOT-2021-07-17-a toolchain, this option is newly-needed to get past widespread 'is in generated IR file, but not in TBD file' errors. Because of the -validate-tbd-against-ir=none workaround, this toolchain is unsuitable for reproducing this error.)
Attachment: Download
Environment
Swift 5.5 DEVELOPMENT-SNAPSHOT-2021-07-08-a toolchain
macOS 11.4
Xcode 12.5.1
Additional Detail from JIRA
md5: 918e2de26136e1625b2ce86265799e9f
Issue Description:
Using Swift 5.5 DEVELOPMENT-SNAPSHOT-2021-07-08-a and a class with a trivial initializer marked async, swift fails with an assertion when -enable-testing is passed to the compiler:
Assertion failed: (!isa<ConstructorDecl>(decl)), function appendEntity, file /Users/buildnode/jenkins/workspace/oss-swift-5.5-package-macos/swift/lib/AST/ASTMangler.cpp, line 3004.
A seemingly-valid .o file is generated if the "-enable-testing" is removed from the compiler invocation.
The text was updated successfully, but these errors were encountered: