Skip to content

[SR-2338] Compiler Crash on Implementing Optional convenience init of CGMutablePath #44945

@swift-ci

Description

@swift-ci
Previous ID SR-2338
Radar None
Original Reporter Glenn.Howes (JIRA User)
Type Bug
Status Closed
Resolution Done
Environment

OSX 10.11.6 (15G31), Xcode tools 8.0 (8S193k), Apple Swift version 3.0 (swiftlang-800.0.42.1 clang-800.0.36.1)

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash
Assignee @milseman
Priority Medium

md5: f6596743c7cce37ddcb47a3028c32f0c

relates to:

Issue Description:

From the command line, enter the following:

new-host-4:SignalGH glenn$ swift
Welcome to Apple Swift version 3.0 (swiftlang-800.0.42.1 clang-800.0.36.1). Type :help for assistance.
  1> import CoreGraphics
  2>  
  3> extension CGMutablePath 
  4. { 
  5.     public func addSVGPath(svgPath: String) -> Bool 
  6.     { 
  7.         return true 
  8.     } 
  9.      
 10.     public convenience init?(svgPath: String) 
 11.     { 
 12.         self.init() 
 13.         self.addSVGPath(svgPath: svgPath) 
 14.     } 
 15. } 

Bus error: 10

This also crashes the compiler in the current Xcode 8 beta (8.0 beta 5 (8S193k)), but I thought it would be simpler to provide the command line equivalent.

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of software

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions