[Issue 6799] New: Backend ICE involving AAs and pointers to structs
http://d.puremagic.com/issues/show_bug.cgi?id=6799 Summary: Backend ICE involving AAs and pointers to structs Product: D Version: D2 Platform: All OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: debio...@gmail.com --- Comment #0 from Andrew Wiley debio...@gmail.com 2011-10-09 23:22:29 PDT --- Code Sample: struct ChunkLoc { } class Chunk { private ChunkLoc _loc; @property public ChunkLoc loc() { return _loc; } } private struct FiberWaitingForChunk { } class WorldCache { FiberWaitingForChunk*[ChunkLoc] _fibersWaitingForChunks; void chunkLoaded(Chunk chunk) { _fibersWaitingForChunks.remove(chunk.loc); } } Output: Internal error: backend/type.c 304 (Code doesn't make much sense because it's a very reduced scenario) (Kudos to DustMite) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6792] New: [CTFE] ICE with pointer cast of indexed array
http://d.puremagic.com/issues/show_bug.cgi?id=6792 Summary: [CTFE] ICE with pointer cast of indexed array Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: youx...@gmail.com CC: clugd...@yahoo.com.au Don clugd...@yahoo.com.au changed: What|Removed |Added CC||clugd...@yahoo.com.au Summary|[CTFE] CTFE internal |[CTFE] ICE with pointer |error occurs |cast of indexed array --- Comment #0 from Hisayuki Mima youx...@gmail.com 2011-10-08 10:24:56 PDT --- struct S{ int i; } static assert({ { void* p; p = [S(1)].ptr; S s = *(cast(S*)p);// OK assert(s.i == 1); } { void*[] ary; ary ~= [S(2)].ptr; S s = *(cast(S*)ary[0]);// Error: CTFE internal error assigning struct assert(s.i == 2); } { void*[string] aa; aa[key] = [S(3)].ptr; S s = *(cast(S*)aa[key]);// Error: CTFE internal error assigning struct assert(s.i == 3); } return true; }()); The latest dmd built from github cannot compile the above code. --- Comment #1 from Don clugd...@yahoo.com.au 2011-10-10 01:15:26 PDT --- Another case, where it's an lvalue instead of an rvalue: { void*[7] ary; ary[6]= [S(2)].ptr; *(cast(S*)ary[6]) = S(4); //ICE(interpret.c 2965) } The root cause is that type painting of pointers hasn't been considered properly in CTFE. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6800] New: [CTFE] dangerous pointer casts should be rejected
http://d.puremagic.com/issues/show_bug.cgi?id=6800 Summary: [CTFE] dangerous pointer casts should be rejected Product: D Version: D1 D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: clugd...@yahoo.com.au --- Comment #0 from Don clugd...@yahoo.com.au 2011-10-10 01:17:58 PDT --- Some dangerous casts are currently accepted, but shouldn't be: static assert({ int *x = (new int[2]).ptr; double* ary= cast(double *)x; return true; }()); This shouldn't compile. This is vaguely related to bug 6792; it's a type painting issue. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6798] Integrate overloadings for multidimentional indexing and slicing
http://d.puremagic.com/issues/show_bug.cgi?id=6798 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||patch --- Comment #2 from Kenji Hara k.hara...@gmail.com 2011-10-10 02:35:06 PDT --- Posted pull request. https://github.com/D-Programming-Language/dmd/pull/443 (This does not contains stride syntax/overloading.) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6802] New: RandomSample should take a generator as an argument
http://d.puremagic.com/issues/show_bug.cgi?id=6802 Summary: RandomSample should take a generator as an argument Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: enhancement Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: dsim...@yahoo.com --- Comment #0 from David Simcha dsim...@yahoo.com 2011-10-10 08:33:05 PDT --- The title says it all. I'll work on a pull request when I get a chance. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 259] Comparing signed to unsigned does not generate an error
http://d.puremagic.com/issues/show_bug.cgi?id=259 Christian Kamm kamm-removet...@incasoftware.de changed: What|Removed |Added CC||kamm-removethis@incasoftwar ||e.de --- Comment #20 from Christian Kamm kamm-removet...@incasoftware.de 2011-10-10 08:58:59 PDT --- See https://github.com/D-Programming-Language/dmd/pull/119 https://github.com/D-Programming-Language/dmd/pull/444 for two possible fixes. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6618] TypeInfo_Struct.equals should prefer xopEquals than pointer equality
http://d.puremagic.com/issues/show_bug.cgi?id=6618 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #2 from Kenji Hara k.hara...@gmail.com 2011-10-10 15:57:00 PDT --- https://github.com/9rnsr/druntime/commit/76f732c97cd35686da670fde6af63ac1b59aabb9 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4237] Typedefs of the same name cause initializer conflict
http://d.puremagic.com/issues/show_bug.cgi?id=4237 --- Comment #4 from Kenji Hara k.hara...@gmail.com 2011-10-10 19:35:56 PDT --- (In reply to comment #3) The comment #2 patch set -parent everytime = wrong. This one is better: --- src/declaration.c +++ src/declaration.c @@ -298,6 +298,7 @@ void TypedefDeclaration::semantic(Scope *sc) //printf(TypedefDeclaration::semantic(%s) sem = %d\n, toChars(), sem); if (sem == 0) { sem = 1; +parent = sc-parent; basetype = basetype-semantic(loc, sc); sem = 2; #if DMDV2 Pushed as pull request: https://github.com/D-Programming-Language/dmd/pull/445 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 5898] [const] std.typecons.Rebindable.get() should be const-correct
http://d.puremagic.com/issues/show_bug.cgi?id=5898 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #1 from Kenji Hara k.hara...@gmail.com 2011-10-10 19:40:10 PDT --- https://github.com/D-Programming-Language/phobos/commit/cf62cd2b3d2b0c4d92536cafbec70427f46a68d6 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---