PR c++/67557
* call.c (unsafe_copy_elision_p): Look through COMPOUND_EXPR.
From-SVN: r232166
+2016-01-08 Jason Merrill <jason@redhat.com>
+
+ PR c++/68983
+ PR c++/67557
+ * call.c (unsafe_copy_elision_p): Look through COMPOUND_EXPR.
+
2016-01-05 Nathan Sidwell <nathan@acm.org>
PR c++/58583
&& resolves_to_fixed_type_p (target, NULL))
return false;
tree init = TARGET_EXPR_INITIAL (exp);
+ /* build_compound_expr pushes COMPOUND_EXPR inside TARGET_EXPR. */
+ while (TREE_CODE (init) == COMPOUND_EXPR)
+ init = TREE_OPERAND (init, 1);
return (TREE_CODE (init) == AGGR_INIT_EXPR
&& !AGGR_INIT_VIA_CTOR_P (init));
}
--- /dev/null
+// PR c++/67557
+
+class A {
+public:
+ A m_fn1();
+ A(A const &);
+ int *L;
+ int ref;
+};
+struct B : A {
+ B();
+};
+B::B() : A((0, m_fn1())) {}