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

           Summary: [64-bit] new bool returns bogus address
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: dsim...@yahoo.com


--- Comment #0 from David Simcha <dsim...@yahoo.com> 2011-02-13 16:23:24 PST ---
import std.stdio;

void main() {
    auto b = new bool;
    stderr.writeln(b);
    *b = false;
}

The address I receive can't be right because it's in "no-man's land" part of
x64 address space, at least according to http://en.wikipedia.org/wiki/X86-64 . 
At any rate, it segfaults the program.

AD7DAE8000000000
Segmentation fault

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

Reply via email to