decl2.c (mark_member_pointers): Verify that member pointer points to the function.
* decl2.c (mark_member_pointers): Verify that member pointer points to the function. From-SVN: r69902
This commit is contained in:
parent
b736595713
commit
58579435ee
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Jul 28 23:55:10 CEST 2003 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* decl2.c (mark_member_pointers): Verify that member pointer points to
|
||||
the function.
|
||||
|
||||
2003-07-28 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* cp-tree.h (begin_compound_stmt): No scope arg is a bool.
|
||||
|
|
|
@ -2594,7 +2594,8 @@ static tree
|
|||
mark_member_pointers (tree *tp, int *walk_subtrees ATTRIBUTE_UNUSED,
|
||||
void *data ATTRIBUTE_UNUSED)
|
||||
{
|
||||
if (TREE_CODE (*tp) == PTRMEM_CST)
|
||||
if (TREE_CODE (*tp) == PTRMEM_CST
|
||||
&& TYPE_PTRMEMFUNC_P (TREE_TYPE (*tp)))
|
||||
cgraph_mark_needed_node (cgraph_node (PTRMEM_CST_MEMBER (*tp)), 1);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue