re PR c++/26740 (ICE taking the address of a bound member function)

2006-06-01  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/26740
        * typeck.c (build_unary_op): Mark the function as being used.

From-SVN: r114360
This commit is contained in:
Andrew Pinski 2006-06-04 17:40:51 +00:00 committed by Andrew Pinski
parent 89cfff85bf
commit 5c147e2278
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-06-01 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/26740
* typeck.c (build_unary_op): Mark the function as being used.
2006-06-01 Alexandre Oliva <aoliva@redhat.com>
PR c++/26660

View File

@ -4245,6 +4245,7 @@ build_unary_op (enum tree_code code, tree xarg, int noconvert)
and the created OFFSET_REF. */
tree base = TYPE_MAIN_VARIANT (TREE_TYPE (TREE_OPERAND (arg, 0)));
tree fn = get_first_fn (TREE_OPERAND (arg, 1));
mark_used (fn);
if (! flag_ms_extensions)
{