www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11629] New: [CTFE] crash on AA.rehash

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11629

           Summary: [CTFE] crash on AA.rehash
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: CTFE, ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2013-11-27 18:41:16 PST ---
From:
http://forum.dlang.org/post/nvaqmtivvhrsaylzmscb forum.dlang.org

Test case:

struct Base
{
    alias T = ubyte, Char = char;
    alias String = immutable(Char)[];

    const Char[T] toChar;

    this( int _dummy )
    {
        Char[T] toCharTmp = [0:'A'];

        toChar = toCharTmp.rehash;
    }
}
void main()
{
    //auto rt = Base(4);  // OK
    enum ct = Base(4);  // crash
}

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 27 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11629


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

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


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-11-27 18:48:54 PST ---
https://github.com/D-Programming-Language/dmd/pull/2893

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 27 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11629



--- Comment #2 from github-bugzilla puremagic.com 2013-12-09 22:06:34 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/36cabb9d17374f61b4bdbb195adc794addd39bd5
fix Issue 11629 - [CTFE] crash on AA.rehash

https://github.com/D-Programming-Language/dmd/commit/cf0a8a4cd1f56461bcb48e3bb7de001620a31a29
Merge pull request #2893 from 9rnsr/fix11629

Issue 11629 - [CTFE] crash on AA.rehash

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 09 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11629


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 09 2013