[Issue 4826] "cannot create associative array" and compiler crash

2010-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4826 --- Comment #5 from Don 2010-09-07 13:47:50 PDT --- The segfault should be turned into an ICE by adding an extra assert into TypeAArray::getImpl(), in mtype.c 3967. +assert(ti->inst || sc); ti->semantic(sc); ti->semanti

[Issue 4826] "cannot create associative array" and compiler crash

2010-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4826 --- Comment #4 from Don 2010-09-07 00:04:26 PDT --- Actually even with the patch for bug 3996, I found a test case which still segfaults: struct Struct4826 { } void bug4826b(T)(int[int] value) {} void test4826b() { bug4826b(S

[Issue 4826] "cannot create associative array" and compiler crash

2010-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4826 Don changed: What|Removed |Added Keywords||diagnostic --- Comment #3 from Don 2010-09-06 2

[Issue 4826] "cannot create associative array" and compiler crash

2010-09-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4826 --- Comment #2 from brian-sch...@cox.net 2010-09-05 19:34:48 PDT --- (In reply to comment #1) That should have been: void opIndexAssign(T)(T value, string key) if(is(T : SomeStruct)) { } But the error is the same either way. Bugzilla needs an

[Issue 4826] "cannot create associative array" and compiler crash

2010-09-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4826 --- Comment #1 from brian-sch...@cox.net 2010-09-05 19:29:53 PDT --- Here's the code that fails: The second opIndexAssign is written this way because of bug 2972. module testcase; struct SomeStruct { void opIndexAssign(T)(T[string] value,