[Issue 5571] [64-bit] new bool returns bogus address

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 13 17:04:53 PST 2011


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



--- Comment #1 from David Simcha <dsimcha at yahoo.com> 2011-02-13 17:02:22 PST ---
Looking into it further, this seems to happen with any primitive type, for
example, "new double", "new uint".  Amazingly, though, this code works:

import std.stdio;

void main() {
    auto b = (new bool[1]).ptr;
    stderr.writeln(b);
    *b = 1;
}

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