digitalmars.D.bugs - [Issue 872] New: Assertion in expression.c caused by taking typeof of "this.outer" in nested classes.
- d-bugmail puremagic.com (14/14) Jan 22 2007 http://d.puremagic.com/issues/show_bug.cgi?id=872
- d-bugmail puremagic.com (20/20) Jan 22 2007 http://d.puremagic.com/issues/show_bug.cgi?id=872
- d-bugmail puremagic.com (11/11) Jan 23 2007 http://d.puremagic.com/issues/show_bug.cgi?id=872
http://d.puremagic.com/issues/show_bug.cgi?id=872 Summary: Assertion in expression.c caused by taking typeof of "this.outer" in nested classes. Product: D Version: 1.00 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: tknott gmail.com --
Jan 22 2007
http://d.puremagic.com/issues/show_bug.cgi?id=872 tknott gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code ------- Comment #1 from tknott gmail.com 2007-01-22 18:11 ------- Sorry, I accidentally hit "enter" before providing a description. Anyways, the following example (which seems to be valid D code) will cause an assertion in the DMD frontend code (Assertion failure: 'global.errors || var' on line 1904 in file 'expression.c') upon compilation. This bug affects both DMD and GDC. Test case: class ExOuter { class ExInner { this() { typeof(this.outer) X; } } } void main() {} --
Jan 22 2007
http://d.puremagic.com/issues/show_bug.cgi?id=872 ------- Comment #2 from thomas-dloop kuehne.cn 2007-01-23 07:45 ------- Added to DStress as http://dstress.kuehne.cn/compile/o/outer_02_A.d http://dstress.kuehne.cn/compile/o/outer_02_B.d http://dstress.kuehne.cn/compile/o/outer_02_C.d http://dstress.kuehne.cn/compile/o/outer_02_D.d http://dstress.kuehne.cn/compile/o/outer_02_E.d http://dstress.kuehne.cn/compile/o/outer_02_F.d http://dstress.kuehne.cn/compile/o/outer_02_G.d --
Jan 23 2007