Uploaded image for project: 'Swift'
  1. Swift
  2. SR-2394

Swift shouldn't import "returns twice" functions like setjmp

    XMLWordPrintable

    Details

      Description

      Clang has a notion of “returns twice” functions, used for things like fork/setjmp and other icky things. The compiler doesn’t reason about these function and the control flow that they entail, so DI and other properties are not correct.

      When importing one of them, we should slap an ‘unavailable’ attribute on them, so swift programmers don’t use them.

        Attachments

          Activity

            People

            Assignee:
            Lovems Allen harmon
            Reporter:
            jrose Jordan Rose
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: