Thread overview
[Issue 5633] New: (constfold.c): pointer is null
Feb 21, 2011
Trass3r
Feb 21, 2011
Don
Jun 16, 2011
yebblies
[Issue 5633] [CTFE] ICE(constfold.c): is expression with struct, struct pointer, array literal...
Jun 17, 2011
Don
February 21, 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@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@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: -------
February 21, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5633


Trass3r <mrmocool@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mrmocool@gmx.de


--- Comment #1 from Trass3r <mrmocool@gmx.de> 2011-02-21 10:27:46 PST ---
Isn't this an ICE then?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 21, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5633


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|rejects-valid               |ice-on-valid-code
                 CC|                            |clugdbug@yahoo.com.au


--- Comment #2 from Don <clugdbug@yahoo.com.au> 2011-02-21 11:34:27 PST ---
(In reply to comment #1)
> Isn't this an ICE then?

Certainly is!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 16, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5633


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies@gmail.com


--- Comment #3 from yebblies <yebblies@gmail.com> 2011-06-16 01:50:42 PDT ---
*** Issue 6159 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 17, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5633


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #4 from Don <clugdbug@yahoo.com.au> 2011-06-17 01:10:30 PDT ---
https://github.com/D-Programming-Language/dmd/commit/878499a6d911c9e7e77ae97db36f73d1fd7e2aff

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