From: Andrew Pinski Date: Sun, 4 Jun 2006 17:40:51 +0000 (+0000) Subject: re PR c++/26740 (ICE taking the address of a bound member function) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c147e22785838d1cf042c074a28297c07476105;p=gcc.git re PR c++/26740 (ICE taking the address of a bound member function) 2006-06-01 Andrew Pinski PR c++/26740 * typeck.c (build_unary_op): Mark the function as being used. From-SVN: r114360 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0d91aed04b0..e4186b9d864 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2006-06-01 Andrew Pinski + + PR c++/26740 + * typeck.c (build_unary_op): Mark the function as being used. + 2006-06-01 Alexandre Oliva PR c++/26660 diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 975bfd3e055..5861f233c0f 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -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) {