OSDN Git Service

* typeck.c (build_unary_op): Clarify error message.
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Feb 2001 16:41:44 +0000 (16:41 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Feb 2001 16:41:44 +0000 (16:41 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39685 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 23d9095..7f14cfb 100644 (file)
@@ -1,3 +1,7 @@
+2001-02-14  Jakub Jelinek  <jakub@redhat.com>
+
+       * typeck.c (build_unary_op): Clarify error message.
+
 2001-02-08  Aldy Hernandez  <aldyh@redhat.com>
 
         * cp/parse.y (component_constructor_declarator): allow optional
index 3fd103f..f0d70ce 100644 (file)
@@ -4652,7 +4652,7 @@ build_unary_op (code, xarg, noconvert)
              if (current_class_type
                  && TREE_OPERAND (arg, 0) == current_class_ref)
                /* An expression like &memfn.  */
-               cp_pedwarn ("ISO C++ forbids taking the address of a non-static member function to form a pointer to member function.  Say `&%T::%D'", base, name);
+               cp_pedwarn ("ISO C++ forbids taking the address of an unqualified non-static member function to form a pointer to member function.  Say `&%T::%D'", base, name);
              else
                cp_pedwarn ("ISO C++ forbids taking the address of a bound member function to form a pointer to member function.  Say `&%T::%D'", base, name);
            }