https://issues.dlang.org/show_bug.cgi?id=22335
--- Comment #2 from Max Samukha <maxsamu...@gmail.com> --- (In reply to Walter Bright from comment #1) > It's currently necessary to manually create a .di file with the contents: > > export extern __gshared int x; > > for this to work. That's literally what I wrote. The point of this bug report is that it has to be done manually because neither simple import nor "-H" work. --