OSDN Git Service

2006-06-01 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Jun 2006 17:40:51 +0000 (17:40 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Jun 2006 17:40:51 +0000 (17:40 +0000)
        PR c++/26740
        * typeck.c (build_unary_op): Mark the function as being used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114360 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/typeck.c

index 0d91aed..e4186b9 100644 (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
index 975bfd3..5861f23 100644 (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)
            {