Bug 216 – ridiculous error message

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-06-21T20:16:00Z
Last change time
2014-02-15T13:21:00Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
h3r3tic

Comments

Comment #0 by h3r3tic — 2006-06-21T20:16:47Z
The code below compiles: // console_main.d alias uint DataKey; struct Output { template mix() { template writei() { void writei(DataKey k) {} } void write(DataKey k) { writei!()(k); } } } class Kernel { // this() {} } class Foo : Kernel { mixin Output.mix mixer; } void main() { } // ---- Now, try uncommenting the ctor in the Kernel class. Result: console_main.d(8): identifier 'DataKey' is not defined
Comment #1 by wbaxter — 2006-12-17T02:30:54Z
maybe I shouldn't have taken it upon myself to do this, but it doesn't seem like a bad error message really warrants a category "major". "Minor" would be more like it, but I'll settle for "normal".
Comment #2 by braddr — 2007-09-17T00:42:32Z
This bug is no longer visible with dmd versions 1.021 or 2.004. Thomas, can you confirm that it's ok to close?
Comment #3 by bugzilla — 2007-10-02T15:02:53Z
Works in DMD 1.021 and 2.004.