PR c++/19312
* tree.c (stabilize_init): Don't bother trying to stabilize
something with no side-effects.
From-SVN: r97691
+2005-04-06 Jason Merrill <jason@redhat.com>
+
+ PR c++/19312
+ * tree.c (stabilize_init): Don't bother trying to stabilize
+ something with no side-effects.
+
2005-04-05 Mark Mitchell <mark@codesourcery.com>
PR c++/20763
if (TREE_CODE (t) == COND_EXPR)
return false;
- stabilize_call (t, initp);
+ /* The TARGET_EXPR might be initializing via bitwise copy from
+ another variable; leave that alone. */
+ if (TREE_SIDE_EFFECTS (t))
+ stabilize_call (t, initp);
}
return true;
--- /dev/null
+// PR c++/19312
+
+struct A {};
+
+void foo(A a)
+{
+ throw (A)a;
+}