commit 99c854c1078c3fc486ecf9b336e3a274a0c46469
Author: Jason Merrill <jason@redhat.com>
Date: Wed Jun 1 13:31:33 2011 -0400
PR c++/49253
* typeck2.c (build_x_arrow): Don't use build_min_nt.
@@ -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;
}