Bug 5633 – [CTFE] ICE(constfold.c): is expression with struct, struct pointer, array literal...

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2011-02-21T09:57:00Z
Last change time
2011-06-17T01:10:30Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2011-02-21T09:57:00Z
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'
Comment #1 by hoganmeier — 2011-02-21T10:27:46Z
Isn't this an ICE then?
Comment #2 by clugdbug — 2011-02-21T11:34:27Z
(In reply to comment #1) > Isn't this an ICE then? Certainly is!
Comment #3 by yebblies — 2011-06-16T01:50:42Z
*** Issue 6159 has been marked as a duplicate of this issue. ***
Comment #4 by clugdbug — 2011-06-17T01:10:30Z