digitalmars.D.bugs - [Issue 1278] New: Header generation option omits module ctors. Causes out of order module init.
- d-bugmail puremagic.com (20/20) Jun 18 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1278
- d-bugmail puremagic.com (11/11) Jun 18 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1278
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
http://d.puremagic.com/issues/show_bug.cgi?id=1278 sean f4.ca changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE ------- Comment #1 from sean f4.ca 2007-06-18 22:20 ------- Oops. This is a dup of issue #668. Please fix. It's as easy as adding a "static this();" to the header output of modules containing static ctors. *** This bug has been marked as a duplicate of 668 *** --
Jun 18 2007