[SR-13835] Segmentation fault: 11 when compiling with names for associated values in enums #56233
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Environment
I tried it with XCode 12.2 beta 3 and the release candidate. I'm using Swift 5.3. It's all running on a MacBook Pro 16 inch (2019) and Mac OS 11.0.1 RC
Additional Detail from JIRA
md5: 7896818b36c49ff0f3d11e791b814f39
Issue Description:
Hey,
I don't really know what information is needed for this, so sorry if something is missing. I'm getting a "Segmentation fault: 11" error when trying to compile my project. This is the stack dump:
This is the function that is referred to in the stack dump:
What solved the problem was removing the name for the associated value of the case. So, turning this
into this
resolves the problem (which was suggested here: https://stackoverflow.com/questions/63938592/segmentation-fault-11-xcode-swift-5-compile-issue). However, the crash hasn't always been occurring. I've had that name for the associated value for weeks without problems (I also use names for other associated values throughout the app and it never had a problem to compile).
Any ideas what happened here?
The text was updated successfully, but these errors were encountered: