[Issue 8602] ICE(mtype.c) string mixin + auto return type + template tuple

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 26 07:44:08 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8602


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Assertion failure           |ICE(mtype.c) string mixin +
                   |                            |auto return type + template
                   |                            |tuple


--- Comment #2 from Don <clugdbug at yahoo.com.au> 2012-11-26 07:44:06 PST ---
Very marginally simplified. If you take out the "if (func.length == 1)" then it
segfaults instead.
-------------
template ReturnType(func...) if (func.length == 1) { }

struct MyClass {
    auto xopBinary(T)() { }
}

struct BinaryOperatorX() {
    ReturnType!(mixin("MyClass.xopBinary!(int)")) RET_T;
}

void PydMain() {
    BinaryOperatorX!();
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list