mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-13 16:41:19 +08:00
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:
parent
936471542f
commit
53ee1bf364
16
gcc/testsuite/g++.dg/init/cleanup1.C
Normal file
16
gcc/testsuite/g++.dg/init/cleanup1.C
Normal 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())
|
||||
;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user