Bug 7843 – Regression(2.059 beta): Informational warning fails to produce executable

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-04-05T21:16:00Z
Last change time
2012-04-06T00:29:16Z
Assigned to
nobody
Creator
bus_dbugzilla

Comments

Comment #0 by bus_dbugzilla — 2012-04-05T21:16:40Z
struct Foo { const hash_t toHash() { return 0; } } void main() { } ------------------------------ >test 'test' is not recognized as an internal or external command, operable program or batch file. >dmd -wi test.d test.d(3): Warning: toHash() must be declared as extern (D) uint toHash() const pure nothrow @safe, not const uint() >test 'test' is not recognized as an internal or external command, operable program or batch file. >dmd test.d >test (ok) >
Comment #1 by github-bugzilla — 2012-04-06T00:28:31Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/8b665514b3a1473a59cc75b0a63299d462206e86 fix Issue 7843 - Regression(2.059 beta): Informational warning fails to produce executable