I have a macro, it also opensourced on github, this is the repository that used to convert a data model to a persistent document, and save the document (plist) in to disk. But I met some probem when I use this macro, it will cause EXC_BAD_ACCESS, but if I use the expanded code directly, it works very well. I don't understand why.
I wrote a unit test in the repository and mark those two test.
Which exact version of Swift are you using to reproduce it, which platform and version of that platform? If that's Linux, please also specify the distribution and its exact version of that. Thanks!
Would greatly appreciate you filing an issue at Issues · apple/swift · GitHub with all the repro steps and exact versions, and then repost a link to that new issue here, if possible. That would allow us to track it and collect relevant information in one place.