Thread overview |
---|
January 23, 2007 [Issue 872] New: Assertion in expression.c caused by taking typeof of "this.outer" in nested classes. | ||||
---|---|---|---|---|
| ||||
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 -- |
January 23, 2007 [Issue 872] Assertion in expression.c caused by taking typeof of "this.outer" in nested classes. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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() {} -- |
January 23, 2007 [Issue 872] Assertion in expression.c caused by taking typeof of "this.outer" in nested classes. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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 -- |
Copyright © 1999-2021 by the D Language Foundation