[Issue 3958] mixin(non-static method) crashes compiler
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 15 12:21:06 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3958
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
CC| |clugdbug at yahoo.com.au
--- Comment #2 from Don <clugdbug at yahoo.com.au> 2010-03-15 12:21:05 PDT ---
PATCH(against 2.042): This is trivial.
// interpret.c line 2569:
if (pthis && fd)
{ // Member function call
if (pthis->op == TOKthis)
- pthis = istate->localThis;
+ pthis = istate ? istate->localThis : NULL;
else if (pthis->op == TOKcomma)
pthis = pthis->interpret(istate);
The second issue is that mixin(null); is never allowed. It's completely
unrelated to this bug. Create a new bug for it if you think it matters.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list