* init.c (build_offset_ref): Remove superfluous temporary.

From-SVN: r113008
This commit is contained in:
Volker Reichelt 2006-04-17 16:32:03 +00:00 committed by Volker Reichelt
parent 71a9b19ae8
commit 7304fcb4a7
2 changed files with 7 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2006-04-17 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
* init.c (build_offset_ref): Remove superfluous temporary.
2006-04-16 Mark Mitchell <mark@codesourcery.com> 2006-04-16 Mark Mitchell <mark@codesourcery.com>
PR c++/26365 PR c++/26365
@ -4773,7 +4777,7 @@
* pt.c (instantiate_class_template, * pt.c (instantiate_class_template,
resolve_typename_type): Likewise. resolve_typename_type): Likewise.
2005-01-03 Volker Reichelt <reichelt@igpm.rwth-aaachen.de> 2005-01-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/14136 PR c++/14136
* parser.c (cp_parser_unqualified_id): Do not issue error message * parser.c (cp_parser_unqualified_id): Do not issue error message

View File

@ -1378,8 +1378,7 @@ build_offset_ref (tree type, tree member, bool address_p)
if (BASELINK_P (member)) if (BASELINK_P (member))
{ {
/* Go from the TREE_BASELINK to the member function info. */ /* Go from the TREE_BASELINK to the member function info. */
tree fnfields = member; tree t = BASELINK_FUNCTIONS (member);
tree t = BASELINK_FUNCTIONS (fnfields);
if (TREE_CODE (t) != TEMPLATE_ID_EXPR && !really_overloaded_fn (t)) if (TREE_CODE (t) != TEMPLATE_ID_EXPR && !really_overloaded_fn (t))
{ {
@ -1405,10 +1404,7 @@ build_offset_ref (tree type, tree member, bool address_p)
member = t; member = t;
} }
else else
{ TREE_TYPE (member) = unknown_type_node;
TREE_TYPE (fnfields) = unknown_type_node;
member = fnfields;
}
} }
else if (address_p && TREE_CODE (member) == FIELD_DECL) else if (address_p && TREE_CODE (member) == FIELD_DECL)
/* We need additional test besides the one in /* We need additional test besides the one in