[Issue 5633] New: (constfold.c): pointer is null

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 21 09:59:41 PST 2011


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

           Summary: (constfold.c): pointer is null
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2011-02-21 09:57:00 PST ---
A problem found by Matthias Pleh:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.learn&article_id=24915


struct Foo {}
void main() {
    Foo f;
    bool b = &f is cast(Foo*)0;
}


DMD 2.052 gives:
Assertion failure: '0' on line 875 in file 'constfold.c'

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