OSDN Git Service

PR c++/44780
[pf3gnuchains/gcc-fork.git] / gcc / cp / typeck2.c
index f62bbb5..bdc14c7 100644 (file)
@@ -1478,8 +1478,8 @@ build_m_component_ref (tree datum, tree component)
   if (error_operand_p (datum) || error_operand_p (component))
     return error_mark_node;
 
-  mark_lvalue_use (datum);
-  mark_rvalue_use (component);
+  datum = mark_lvalue_use (datum);
+  component = mark_rvalue_use (component);
 
   ptrmem_type = TREE_TYPE (component);
   if (!TYPE_PTR_TO_MEMBER_P (ptrmem_type))