Skip to content

Commit

Permalink
Fix unintended infinite loop in Phobos build
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Mar 7, 2012
1 parent 984dac3 commit 41229fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/expression.c
Original file line number Diff line number Diff line change
Expand Up @@ -7124,7 +7124,11 @@ Expression *CallExp::resolveUFCS(Scope *sc)
if (t->ty == Tpointer)
{ Type *tn = t->nextOf();
if (tn->ty == Tclass || tn->ty == Tstruct)
t = t->nextOf();
{
e = new PtrExp(e->loc, e);
e = e->semantic(sc);
t = e->type->toBasetype();
}
}
if (t->ty == Tclass)
{
Expand Down

0 comments on commit 41229fb

Please sign in to comment.