[Issue 11629] New: [CTFE] crash on AA.rehash
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 27 18:41:17 PST 2013
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 at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at 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: -------
More information about the Digitalmars-d-bugs
mailing list