[Issue 2715] Access Violation at writefln with interface
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 28 21:53:49 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2715
------- Comment #1 from unknown at simplemachines.org 2009-03-28 23:53 -------
Created an attachment (id=296)
--> (http://d.puremagic.com/issues/attachment.cgi?id=296&action=view)
Fix e1->type when clearing this->type within CallExp.
This is crashing within CallExp::canThrow(), since e1->type is NULL. I assume
checkSideAffect() might have this happen too.
As I read the code, e1->type hasn't been properly set yet where I've patched.
Since we don't have f anyway, I think Type::terror is the right thing to set it
to. This does fix the crash, and doesn't spit out any confusing error messages
(other than before.)
I am concerned there may be other places (other Expression's canThrow/etc.?)
that have this same issue. My understanding of the code is probably to limited
to evaluate that.
-[Unknown]
--
More information about the Digitalmars-d-bugs
mailing list