digitalmars.D.bugs - [Issue 216] New: ridiculous error message
- d-bugmail puremagic.com (40/40) Jun 21 2006 http://d.puremagic.com/issues/show_bug.cgi?id=216
- Thomas Kuehne (14/41) Jul 02 2006 -----BEGIN PGP SIGNED MESSAGE-----
- d-bugmail puremagic.com (10/10) Dec 17 2006 http://d.puremagic.com/issues/show_bug.cgi?id=216
- d-bugmail puremagic.com (5/5) Sep 16 2007 http://d.puremagic.com/issues/show_bug.cgi?id=216
- d-bugmail puremagic.com (9/9) Oct 02 2007 http://d.puremagic.com/issues/show_bug.cgi?id=216
http://d.puremagic.com/issues/show_bug.cgi?id=216 Summary: ridiculous error message Product: D Version: 0.161 Platform: PC OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: major Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: h3r3tic mat.uni.torun.pl 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 --
Jun 21 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 d-bugmail puremagic.com schrieb am 2006-06-22:http://d.puremagic.com/issues/show_bug.cgi?id=216The 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 definedAdded to DStress as http://dstress.kuehne.cn/run/t/template_36_A.d http://dstress.kuehne.cn/run/t/template_36_B.d http://dstress.kuehne.cn/run/t/template_36_C.d http://dstress.kuehne.cn/run/t/template_36_D.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFEqARLLK5blCcjpWoRAvF8AJ4nQ24IuOZr0YvlKvA+znYymMNivACgoE/u c76F01E2BIIYZ+WopksnIm0= =eMUM -----END PGP SIGNATURE-----
Jul 02 2006
http://d.puremagic.com/issues/show_bug.cgi?id=216 wbaxter gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal 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". --
Dec 17 2006
http://d.puremagic.com/issues/show_bug.cgi?id=216 This bug is no longer visible with dmd versions 1.021 or 2.004. Thomas, can you confirm that it's ok to close? --
Sep 16 2007
http://d.puremagic.com/issues/show_bug.cgi?id=216 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME Works in DMD 1.021 and 2.004. --
Oct 02 2007