[Issue 872] Assertion in expression.c caused by taking typeof of "this.outer" in nested classes.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 22 16:11:27 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=872


tknott at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code




------- Comment #1 from tknott at 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() {}


-- 



More information about the Digitalmars-d-bugs mailing list