PR c++/43093
* cp-gimplify.c (cp_gimplify_expr) [INIT_EXPR]: Return if we don't
have an INIT_EXPR anymore.
From-SVN: r156840
2010-02-17 Jason Merrill <jason@redhat.com>
+ PR c++/43093
+ * cp-gimplify.c (cp_gimplify_expr) [INIT_EXPR]: Return if we don't
+ have an INIT_EXPR anymore.
+
PR c++/43079
* pt.c (convert_nontype_argument): Change assert to test.
25979. */
case INIT_EXPR:
cp_gimplify_init_expr (expr_p, pre_p, post_p);
- /* Fall through. */
+ if (TREE_CODE (*expr_p) != INIT_EXPR)
+ return GS_OK;
+ /* Otherwise fall through. */
case MODIFY_EXPR:
{
/* If the back end isn't clever enough to know that the lhs and rhs
2010-02-17 Jason Merrill <jason@redhat.com>
+ PR c++/43093
+ * g++.dg/ext/attrib37.C: New.
+
PR c++/43079
* g++.dg/template/ptrmem20.C: New.
--- /dev/null
+// PR c++/43093
+// { dg-do compile { target i?86-*-* } }
+
+struct S {
+ int x;
+ S(const S &s) {}
+};
+
+S __attribute__((__stdcall__)) getS();
+
+void test()
+{
+ S s = getS();
+}