re PR c++/24686 (ICE when building a variation of NMSTL)
authorJason Merrill <jason@gcc.gnu.org>
Fri, 11 Nov 2005 17:15:48 +0000 (12:15 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 11 Nov 2005 17:15:48 +0000 (12:15 -0500)
        PR c++/24686
        * gimplify.c (gimplify_cleanup_point_expr): Also save and restore
        the cleanup list.

From-SVN: r106787

gcc/testsuite/g++.dg/ext/stmtexpr7.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/ext/stmtexpr7.C b/gcc/testsuite/g++.dg/ext/stmtexpr7.C
new file mode 100644 (file)
index 0000000..b1f1334
--- /dev/null
@@ -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; }));
+}