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



--- Comment #2 from Brad Roberts <bra...@puremagic.com> 2010-11-24 01:35:00 PST 
---
ok, debugging #3.  There's actually a couple of different assert locations,
though I suspect they're all related.  If the fix for this reduction doesn't
solve all of them, I'll re-reduce the next one.

=========
module hrm;

struct BlkInfo { size_t size; }

extern (C) BlkInfo gc_qalloc(size_t sz, uint ba);

void __setArrayAllocLength(ref BlkInfo info)
{
    if (info.size) {}
}

extern (C) void foo()
{
    BlkInfo info = gc_qalloc(0, 0);
    __setArrayAllocLength(info);
}
======

$ ../dmd-trunk/src/dmd -c -m64 hrm.d
Internal error: backend/cod1.c 2554

Building in 32 bit mode (without -m64) works just fine.

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

Reply via email to