[Issue 9338] New: Compiler segfault with template mixin creating compile time array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 17 11:48:56 PST 2013


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

           Summary: Compiler segfault with template mixin creating compile
                    time array
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: szadows at gmail.com


--- Comment #0 from Robik <szadows at gmail.com> 2013-01-17 11:48:55 PST ---
This code segfaults:

----
mixin template SomeMixin()
{
    void test()
    {
        enum members = makeArray();
    }

    string[] makeArray()
    {
        return ["a"];
    }
}

class Foo
{
    mixin SomeMixin;
}
----

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