CTFE bug causes null check to pass on null pointers (Issue 7602)

H. S. Teoh hsteoh at quickfur.ath.cx
Sun Mar 18 22:43:02 PDT 2012


While testing my AA implementation on existing AA-related bug, I came
across this issue:

	http://d.puremagic.com/issues/show_bug.cgi?id=7602
 
Upon playing around a bit with the sample code given in the bug, I
managed to find a code snippet that would cause this code:

	if (impl !is null) { ... }

to actually execute the code inside the if-statement body ***even when
impl is null***, while running in CTFE.

I've bumped the severity to critical because something is very very
wrong with this.


T

-- 
Study gravitation, it's a field with a lot of potential.


More information about the Digitalmars-d mailing list