digitalmars.D.bugs - [Issue 6460] New: [CTFE] internal error assigning struct
- d-bugmail puremagic.com (32/32) Aug 09 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6460
- d-bugmail puremagic.com (18/18) Aug 11 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6460
- d-bugmail puremagic.com (12/12) Aug 11 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6460
http://d.puremagic.com/issues/show_bug.cgi?id=6460 Summary: [CTFE] internal error assigning struct Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: dmitry.olsh gmail.com --- Comment #0 from Dmitry Olshansky <dmitry.olsh gmail.com> 2011-08-09 13:56:27 PDT --- Test case: int f() { struct FixedStack(T) { T[] arr; //commenting out this constructor makes it work this(T[] storage){ arr = storage; } } auto counterRange = FixedStack!uint(new uint[22]); return 0; } enum k = f(); dmd's output: struct.d(9): Error: CTFE internal error assigning struct struct.d(13): Error: cannot evaluate f() at compile time -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 09 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6460 Ellery Newcomer <ellery-newcomer utulsa.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ellery-newcomer utulsa.edu --- Comment #1 from Ellery Newcomer <ellery-newcomer utulsa.edu> 2011-08-11 18:41:53 PDT --- I ran into this a while ago: import std.algorithm; void main(){ size_t findi(string s){ return countUntil(s,'d'); }; enum x = map!findi(["a","b"]); } on my example dmd also segfaults. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 11 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6460 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugdbug yahoo.com.au Resolution| |DUPLICATE --- Comment #2 from Don <clugdbug yahoo.com.au> 2011-08-11 23:39:26 PDT --- *** This issue has been marked as a duplicate of issue 6419 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 11 2011