https://issues.dlang.org/show_bug.cgi?id=21390
Nicholas Wilson <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] | |m Resolution|--- |WORKSFORME --- Comment #2 from Nicholas Wilson <[email protected]> --- struct S { @disable this(); } // Does not compile: "default construction is disabled for type `S`" extern __gshared S gVariable1; Works Yields Up to 2.063 : Failure with output: onlineapp.d(4): Error: variable onlineapp.gVariable1 initializer required for type S 2.064 to 2.078.1: Failure with output: onlineapp.d(4): Error: variable onlineapp.gVariable1 default construction is disabled for type S 2.079.1 to 2.095.1: Failure with output: onlineapp.d(4): Error: variable `onlineapp.gVariable1` default construction is disabled for type `S` Since 2.096.1: Success and no output I'm presuming that // Does not compile: "extern symbols cannot have initializers" extern __gshared S gVariable2 = S.init; was an attempted workaround, as that will probably be a WONTFIX. That leaves this as WORKSFORME --
