[SR-15591] Compiler crash (illegal instruction 4) related to implicit CGFloat/Double conversion #57894
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
expressions
Feature: expressions
implicit conversions
Feature: implicit conversions
swift 5.5
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
$ swift --version
swift-driver version: 1.26.21 Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)``Target: arm64-apple-macosx12.0
Additional Detail from JIRA
md5: 0d2d301054dc6e345997c1a022ef52f1
Issue Description:
The attached Xcode project crashes the compiler with error:
error: Illegal instruction: 4 (in target 'formcolor' from project 'formcolor')
Minimized example:
Changing the struct properties from "Double" to "CGFloat" fixes the issue.
The text was updated successfully, but these errors were encountered: