http://d.puremagic.com/issues/show_bug.cgi?id=4826
Don clugd...@yahoo.com.au changed:
What|Removed |Added
Keywords||diagnostic
--- Comment #3
http://d.puremagic.com/issues/show_bug.cgi?id=4826
--- Comment #4 from Don clugd...@yahoo.com.au 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
http://d.puremagic.com/issues/show_bug.cgi?id=4826
--- Comment #5 from Don clugd...@yahoo.com.au 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);
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,
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