[Issue 5708] Error in std.typecons when -release, -inline, and -noboundscheck are all enabled

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 6 00:56:50 PST 2011


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



--- Comment #6 from kennytm at gmail.com 2011-03-06 00:53:53 PST ---
Further removing the Tuple:



import std.conv;

void ik(T)(T) {
    enum a = to!string("foo") ~ to!string("bar");
    static assert(a == "foobar");
}
alias ik!int ik2;

void main() {
    cast(void) () { to!string("lit"); };
}

As of 2.052 it asserts:

~/Downloads:911$ dmd -inline y.d
y.d(5): Error: static assert  ("foofoo" == "foobar") is false
y.d(7):        instantiated from here: ik!(int)

-- 
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