[Issue 3740] Regression: class with fwd reference of a nested struct breaks abstract
https://issues.dlang.org/show_bug.cgi?id=3740 Walter Bright changed: What|Removed |Added Version|1.054 |D1 --
[Issue 3740] Regression: class with fwd reference of a nested struct breaks abstract
http://d.puremagic.com/issues/show_bug.cgi?id=3740 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #4 from Walter Bright 2010-01-30 22:43:23 PST --- fixed dmd 1.056 and 2.040 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3740] Regression: class with fwd reference of a nested struct breaks abstract
http://d.puremagic.com/issues/show_bug.cgi?id=3740 Leandro Lucarella changed: What|Removed |Added CC||llu...@gmail.com --- Comment #3 from Leandro Lucarella 2010-01-27 13:51:49 PST --- Thanks for the fix, but, speaking about the patch, is it a good idea to shadow an object attribute with a local variable like this? Index: /trunk/src/func.c === --- /trunk/src/func.c (revision 354) +++ /trunk/src/func.c (revision 356) @@ -131,8 +131,19 @@ return; } + +parent = sc->parent; +Dsymbol *parent = toParent(); + I think it could be a little error prone, maybe it's a good idea to change the local variable name :) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3740] Regression: class with fwd reference of a nested struct breaks abstract
http://d.puremagic.com/issues/show_bug.cgi?id=3740 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #2 from Walter Bright 2010-01-27 11:37:08 PST --- Changeset 356 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3740] Regression: class with fwd reference of a nested struct breaks abstract
http://d.puremagic.com/issues/show_bug.cgi?id=3740 Don changed: What|Removed |Added CC||clugd...@yahoo.com.au Summary|build tango error |Regression: class with fwd ||reference of a nested ||struct breaks abstract --- Comment #1 from Don 2010-01-25 03:18:16 PST --- Reduced test case. If a class contains a forward reference of a nested struct, it stays abstract. - abstract class Address { abstract int nameLen(); } class Class3740 : Address { FwdStruct z; struct FwdStruct { } int nameLen(){ return 0; } } void cantdo () { Class3740 xxx = new Class3740; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---