summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-14 16:41:44 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-14 16:41:44 +0000
commit3bc77e77b4557c79b0e2df9927c528c0bf4063e0 (patch)
treec2cb8bff21873457853c222d2acda91c7b7a5b21
parent1564af013756dba4f932425cfe5f2d45420590ff (diff)
downloadppe42-gcc-3bc77e77b4557c79b0e2df9927c528c0bf4063e0.tar.gz
ppe42-gcc-3bc77e77b4557c79b0e2df9927c528c0bf4063e0.zip
* typeck.c (build_unary_op): Clarify error message.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39685 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/typeck.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 23d90952bd2..7f14cfbc92d 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c
index 3fd103f1c0b..f0d70ce4f47 100644
--- a/gcc/cp/typeck.c
+++ b/gcc/cp/typeck.c
@@ -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);
}
OpenPOWER on IntegriCloud