[Issue 1278] New: Header generation option omits module ctors. Causes out of order module init.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 18 20:12:10 PDT 2007
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 at digitalmars.com
ReportedBy: sean at 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.
--
More information about the Digitalmars-d-bugs
mailing list