From: Jason Merrill Date: Fri, 11 Nov 2005 17:15:48 +0000 (-0500) Subject: re PR c++/24686 (ICE when building a variation of NMSTL) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=422dfbc43fb3763f765cbf00fa3fd7e8942cae4d;p=gcc.git re PR c++/24686 (ICE when building a variation of NMSTL) PR c++/24686 * gimplify.c (gimplify_cleanup_point_expr): Also save and restore the cleanup list. From-SVN: r106787 --- diff --git a/gcc/testsuite/g++.dg/ext/stmtexpr7.C b/gcc/testsuite/g++.dg/ext/stmtexpr7.C new file mode 100644 index 00000000000..b1f1334a4f4 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/stmtexpr7.C @@ -0,0 +1,13 @@ +// PR c++/24686 + +struct A +{ + ~A(); +}; +bool h(int, const A&); +int f(); +int i; +void g() +{ + i && (A(), ({ static int l = f(); l; })); +}