--- Comment #4 from Don <clugd...@yahoo.com.au> 2012-02-02 01:12:07 PST ---
(In reply to comment #3)
> Looking at that git commit, if I add back in the following code that was
> > #if 1
> > if (op==TOKconstruct && this->e1->op==TOKvar && this->e2->op != TOKthis
> > && this->e2->op != TOKcomma
> > && ((VarExp*)this->e1)->var->storage_class & STCref)
> > wantRef = true;
> > #endif
> then it works.
> Note that when -inline is used, the only function that gets inlined is the
> constructor call.
> Note the comment for the elision, saying it is to fix something with foreach,
> yet foreach is not in this example, I think the problem is in CTFE.
That code was introduced as a hack to get ref foreach to work in CTFE, but it
isn't correct (the != TOKthis and != TOKcomma is a hack). Later, after fixing
some other bugs, ref foreach works without it.
I have made a proper fix, which I will post tonight.
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------