https://issues.dlang.org/show_bug.cgi?id=17733
Steven Schveighoffer <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #1 from Steven Schveighoffer <[email protected]> --- This is because in the first case, S has a hidden context pointer to the stack frame of main(). If you mark it as a static struct, you will not have this problem. Note that the ultimate reason it fails is because any items that have indirections cannot be implicitly converted to immutable. --
