[Issue 1388] New: multiple static constructors allowed in module
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 30 22:51:34 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1388
Summary: multiple static constructors allowed in module
Product: D
Version: 1.007
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: accepts-invalid, spec
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: tomas at famolsen.dk
module bad;
static this() {}
static this() {}
^^
The dmd frontend accepts this but generates two function declarations with the
same mangled name. Causes code generation error in gdc 0.23.
I could not find anywhere in the spec where it's specified whether multiple
module constructors are allowed, so I have marked this bug 'spec' as well.
--
More information about the Digitalmars-d-bugs
mailing list