diff options
author | Jakub Jelinek <jakub@redhat.com> | 2001-02-14 17:41:44 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2001-02-14 17:41:44 +0100 |
commit | 7161c1a582aef9f05caeb12189391a9c04aadda9 (patch) | |
tree | c2cb8bff21873457853c222d2acda91c7b7a5b21 | |
parent | 55bd9f24ca56ce9abb2a20b00f4d42723d0d7621 (diff) | |
download | gcc-7161c1a582aef9f05caeb12189391a9c04aadda9.zip gcc-7161c1a582aef9f05caeb12189391a9c04aadda9.tar.gz gcc-7161c1a582aef9f05caeb12189391a9c04aadda9.tar.bz2 |
* typeck.c (build_unary_op): Clarify error message.
From-SVN: r39685
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 23d9095..7f14cfb 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 3fd103f..f0d70ce 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); } |