[Issue 9338] Compiler segfaults if try to CTFE member function without valid 'this'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 17 23:53:37 PST 2013


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


Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
            Summary|Compiler segfault with      |Compiler segfaults if try
                   |template mixin creating     |to CTFE member function
                   |compile time array          |without valid 'this'


--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2013-01-17 23:53:35 PST ---
This is not related to mixin. This code also segfaults:

class Foo
{
    void test()
    {
        enum members = makeArray();
    }

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

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