[DNM] workarounds for regression SR-12831 on master/5.3 since Feb 7th #32484
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Apple,
OK, so it’s a busy week but I thought I’d file a quick workaround I’ve had to use to get one of my repos johnno1962/SwiftTrace to be able to compile with a toolchain built from master & 5.3 branch. At the moment you get a
Segmentation fault: 11
during module merge due to dereferencing a nullptr as detailed in the ticket. I've bisected the various recent downloadable toolchains and this dates back to commits on February 7th and looking at where it crashes it seems to be related to this new functionality cc: @rjmccall.The problem declaration is this which is
@convention(c)
but actually a SwiftDecl:If I remove the
@convention(c)
it will compile but give an error at runtime. I need to store a pointer to a C function in a static. This has been compiling fine previously.Works around SR-12831.