Closed marcomasser closed 8 years ago
@vedantk, who should look at this?
I'll grab this one.
Fixed on swift/master (348b78a4). We should have this ready for the upcoming betas of swift 2.3 and 3.0. I don't think this will be backported to swift 2.2.
Awesome, thanks!
Environment
OS X 10.11.6 Beta 1 Xcode 7.3.1 with Apple Swift version 2.2 (swiftlang-703.0.18.8 clang-703.0.31) Xcode 8 Beta 1 with Apple Swift version 3.0 (swiftlang-800.0.30 clang-800.0.24)Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, CodeCoverage, CompilerCrash | |Assignee | @vedantk | |Priority | Medium | md5: 11952f74cf5007014189cb0b7fe02d6cIssue Description:
In Xcode, when compiling a unit testing target that has “Gather coverage data” enabled (Edit Scheme > Test > Info), the Swift 2.2 and 3.0 compiler crash when the compiled code contains statement labels that are actually used.
A minimal test is a file with the following contents (“test.swift”):
Compile it with the following command to get the same crash as in Xcode:
swiftc -enable-testing -profile-generate -profile-coverage-mapping test.swift
Here’s the complete output of that command: