Thread overview |
---|
July 31, 2007 [Issue 1388] New: multiple static constructors allowed in module | ||||
---|---|---|---|---|
| ||||
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@digitalmars.com ReportedBy: tomas@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. -- |
July 31, 2007 [Issue 1388] multiple static constructors allowed in module | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1388 ------- Comment #1 from tomas@famolsen.dk 2007-07-31 01:03 ------- Same thing for destructors. -- |
September 29, 2007 [Issue 1388] multiple static constructors allowed in module | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1388 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #2 from bugzilla@digitalmars.com 2007-09-28 22:09 ------- Fixed dmd 1.021 and 2.004 -- |
Copyright © 1999-2021 by the D Language Foundation