[Issue 10970] Segfault in a simple test compiled without -g.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 5 19:35:50 PDT 2013


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



--- Comment #4 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-09-05 19:35:48 PDT ---
(In reply to comment #3)
> I think this is a 64-bit only bug. Could you try compiling with -m32 to
> confirm?

Ok nevermind, I was testing your
http://d.puremagic.com/issues/show_bug.cgi?id=10970#c1 instead of the dpaste
one (try not to use dpaste for short examples).

Your test-case:

-----
import std.stdio;
import std.container;
import std.process;

class A
{
    this(string name)
    {
        m[name] = make!Arr;
    }

    alias Array!A Arr;
    Arr[string] m;
}

int main()
{
    A a = new A("test");
    return 0;
}
-----

Crashes on win32 as well.

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