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: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@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: -------

Reply via email to