[Issue 6919] [CTFE] Cannot get effect to local variable through its pointer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 9 04:52:47 PST 2011


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



--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2011-11-09 04:52:09 PST ---
Similar code.

void formattedRead(string* val)
{
    *val = "1";
}

void test()
{
    string val;
    formattedRead(&val);
    assert(val == "1");
}
static assert({ test(); return true; }());

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