[Issue 4611] static array of structs doesn't yield error message when exceeding 16MB limit

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 10 07:31:33 PDT 2010


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



--- Comment #1 from Trass3r <mrmocool at gmx.de> 2010-08-10 07:31:31 PDT ---
Never mind, class is in that list because size() simply returns PTRSIZE.

So the question is if there are any forward reference cases where this patch
fails because of

unsigned AggregateDeclaration::size(Loc loc)
{
    //printf("AggregateDeclaration::size() = %d\n", structsize);
    if (!members)
        error(loc, "unknown size");
    if (sizeok != 1 && scope)
        semantic(NULL);
    if (sizeok != 1)
    {   error(loc, "no size yet for forward reference");
        //*(char*)0=0;
    }
    return structsize;
}

-- 
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