[Issue 1054] regression: circular aliases cause segfaults

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 3 00:28:45 PDT 2009


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


clugdbug at yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|accepts-invalid             |




------- Comment #2 from clugdbug at yahoo.com.au  2009-04-03 02:28 -------
The first case no longer segfaults -- it stack overflows instead, and the
second case now generates an error.

On DMD1.042, the first case displays:

fog.d(2): Error: alias fog.a recursive alias declaration
Stack overflow

and on DMD2.027, it gets caught in an infinite loop:
fog.d(2): Error: alias fog.a recursive alias declaration
fog.d(2): Error: alias fog.a recursive alias declaration
fog.d(2): Error: alias fog.a recursive alias declaration
fog.d(2): Error: alias fog.a recursive alias declaration
fog.d(2): Error: alias fog.a recursive alias declaration


-- 



More information about the Digitalmars-d-bugs mailing list