PR c++/49253
* typeck2.c (build_x_arrow): Don't use build_min_nt.
From-SVN: r174539
+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
{
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;
}