[cfe-dev] Bug in DoStmt?

Olaf Krzikalla Olaf.Krzikalla at tu-dresden.de
Thu Jun 11 02:14:36 PDT 2009


class DoStmt
{
  //...
  virtual SourceRange getSourceRange() const {
    return SourceRange(DoLoc, SubExprs[BODY]->getLocEnd());

    IMHO this should be:
    return SourceRange(DoLoc, SubExprs[COND]->getLocEnd());
  }
  //...
};

Best,
Olaf Krzikalla



More information about the cfe-dev mailing list