[Issue 370] Compiler stack overflow on recursive typeof in function declaration.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 17 06:39:11 PST 2009


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


--- Comment #5 from Don <clugdbug at yahoo.com.au> 2009-11-17 06:39:09 PST ---
This is caused by the addition of

void TypeTypeof::toDecoBuffer(OutBuffer *buf)
{
    assert(0);
}

to mtype.c. This was added in DMD1.047, but wasn't added to D2, so D2 doesn't
ICE.

PATCH: Just change the assert into an error message, eg:

      error(loc, "invalid typeof expression");

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list