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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 13 16:25:56 PST 2011


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: nobody at puremagic.com
        ReportedBy: dsimcha at yahoo.com


--- Comment #0 from David Simcha <dsimcha at 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: -------


More information about the Digitalmars-d-bugs mailing list