Commit 7448d2e7 by Jason Merrill Committed by Jason Merrill

re PR c++/49253 (Debug-mode forward_list broken)

	PR c++/49253
	* typeck2.c (build_x_arrow): Don't use build_min_nt.

From-SVN: r174539
parent 5f57dccb
2011-06-01 Jason Merrill <jason@redhat.com>
PR c++/49253
* typeck2.c (build_x_arrow): Don't use build_min_nt.
2010-05-31 Fabien Chêne <fabien@gcc.gnu.org>
PR c++/48010
......
......@@ -1463,9 +1463,9 @@ build_x_arrow (tree expr)
{
if (processing_template_decl)
{
expr = build_min_non_dep (ARROW_EXPR, last_rval, orig_expr);
/* It will be dereferenced. */
TREE_TYPE (expr) = TREE_TYPE (TREE_TYPE (last_rval));
expr = build_min (ARROW_EXPR, TREE_TYPE (TREE_TYPE (last_rval)),
orig_expr);
TREE_SIDE_EFFECTS (expr) = TREE_SIDE_EFFECTS (last_rval);
return expr;
}
......
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