www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10059] New: export doesn't work for variable declarations

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10059

           Summary: export doesn't work for variable declarations
           Product: D
           Version: D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: code dawg.eu


--- Comment #0 from Martin Nowak <code dawg.eu> 2013-05-10 12:11:46 PDT ---
export __gshared int foo = 0;

dmd -c bug.d

The compiler creates no export directive in the object file.

NB:
http://stackoverflow.com/questions/8869031/how-to-export-a-variable-from-a-dll-when-compiling-the-d2-language-with-dmd

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 10 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10059



--- Comment #1 from github-bugzilla puremagic.com 2013-05-10 20:34:07 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e99d18065a8b60f7fad70fc1e85f63507be3320a
fix Issue 10059 - export doesn't work for variable declarations

https://github.com/D-Programming-Language/dmd/commit/ccb439c21f586a1bcb32f7a3a3cdf151bc89600d
Merge pull request #2009 from dawgfoto/fix10059

fix Issue 10059 - export doesn't work for variable declarations

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 10 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10059


Martin Nowak <code dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 10 2013