Commit 85a52ea5 by Jason Merrill Committed by Jason Merrill

re PR c++/43093 (internal compiler error: Segmentation fault when compiling Firefox)

	PR c++/43093
	* cp-gimplify.c (cp_gimplify_expr) [INIT_EXPR]: Return if we don't
	have an INIT_EXPR anymore.

From-SVN: r156840
parent d29760ad
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.
......
......@@ -552,7 +552,9 @@ cp_gimplify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p)
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.
......
// 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();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment