Description
Previous ID | SR-2230 |
Radar | https://llvm.org/bugs/show_bug.cgi?id=28695 |
Original Reporter | shaharv (JIRA User) |
Type | Bug |
Attachment: Download
Environment
Ubuntu 16.04, Clang 4.0 (trunk)
Additional Detail from JIRA
Votes | 0 |
Component/s | Compiler |
Labels | Bug, CompilerCrash |
Assignee | None |
Priority | Medium |
md5: 49328686a4a24a9624f2fe30c30ebae6
Issue Description:
clang-built swift compiler breaks since clang revision 274385.
This might be related to clang issue #28603 (https://llvm.org/bugs/show_bug.cgi?id=28603).
When building swift using clang r274385, the built swift compiler asserts, and fails to build the swift runtime. With clang r274379 (revisions 274380-4 seem unrelated), swift is built successfully. clang r274385 revealed some cases of user code breaking due to dangling references, which might be related. See also comments to clang bug #28695 (https://llvm.org/bugs/show_bug.cgi?id=28695).
This issue reproduced with swift-DEVELOPMENT-SNAPSHOT-2016-06-20-a-1538-ge657ece, but also with a much older version (from Aug/15).
For reproduction, please refer to the attached script, clang_swift_good_and_bad.sh, which fetches swift and clang, builds clang r274379 ("good"), builds swift (successful), fetches and builds clang r274385 ("bad"), and builds swift (asserts). Also please see log_ubuntu_16_04_25Jul16.txt for reference output.