[Issue 6951] dependency parameter (-deps) crashes dmd in release build

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 15 01:27:17 PST 2011


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



--- Comment #2 from Stephan Dilly <spam at extrawurst.org> 2011-11-15 01:26:33 PST ---
The following code seems to cause a related issue, i dont know. building it
with:
dmd main.d -release -O -inline -noboundscheck -deps=main.dep

gives: "Assertion failure: 'tdtypes.dim == ti->tdtypes.dim' on line 3928 in
file 'template.c'"

[CODE]
module main;

import std.stdio;

struct Test
{
    //int a;

    void foo()
    {
    //    if(&this != null)
    //        a = 2;
    }
}

void main()
{
    Test* t = new Test();

    t.foo();

    t = null;

    t.foo();
}
[/CODE]

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