www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1278] New: Header generation option omits module ctors. Causes out of order module init.

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

           Summary: Header generation option omits module ctors.  Causes out
                    of order module init.
           Product: D
           Version: 1.015
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: sean f4.ca


Some of the runtime modules in Tango have their public import file generated
using the -H option.  Currently, if these modules are used in the static ctor
of a user application, an error may occur because the user modules will be
initialized before the imported (Tango) modules.  This causes a divide by zero
error in the case of fibers.


-- 
Jun 18 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1278


sean f4.ca changed:

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






"static this();" to the header output of modules containing static ctors.

*** This bug has been marked as a duplicate of 668 ***


-- 
Jun 18 2007