re PR c++/13033 ([tree-ssa] ICE in lower_stmt)

PR c++/13033
        * c-simplify.c (gimplify_c_loop): Wrap the increment in a
        CLEANUP_POINT_EXPR.

From-SVN: r73587
This commit is contained in:
Jason Merrill 2003-11-14 03:17:33 -05:00
parent 936471542f
commit 53ee1bf364
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
// PR c++/13033
// We failed to treat the for increment expression as a full-expression,
// which broke gimplification.
struct QDomNode {
virtual ~QDomNode();
QDomNode nextSibling() const;
bool isNull() const;
};
void processNode(QDomNode n)
{
for (; !n.isNull(); n = n.nextSibling())
;
}