www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9338] New: Compiler segfault with template mixin creating compile time array

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: szadows gmail.com



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: -------
Jan 17 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9338


Kenji Hara <k.hara.pg 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'



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: -------
Jan 17 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9338


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull



https://github.com/D-Programming-Language/dmd/pull/1506

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 18 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9338




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/7982d16e224495cc28787dd93020db7ab01620b9
fix Issue 9338 - Compiler segfaults if try to CTFE member function without
valid 'this'

https://github.com/D-Programming-Language/dmd/commit/f7e565942292e7edef5b948591afe662cac84e9d


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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 18 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9338


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |CTFE
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 18 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9338




Commits pushed to staging at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/7982d16e224495cc28787dd93020db7ab01620b9
fix Issue 9338 - Compiler segfaults if try to CTFE member function without
valid 'this'

https://github.com/D-Programming-Language/dmd/commit/f7e565942292e7edef5b948591afe662cac84e9d


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 11 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9338




Commits pushed to https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/7982d16e224495cc28787dd93020db7ab01620b9
fix Issue 9338 - Compiler segfaults if try to CTFE member function without
valid 'this'

https://github.com/D-Programming-Language/dmd/commit/f7e565942292e7edef5b948591afe662cac84e9d


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 11 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9338




Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/c3a9411507a9971c9471e29ca1898bab73f71352
fix Issue 9338 - Compiler segfaults if try to CTFE member function without
valid 'this'

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