* typeck.c (build_unary_op): Clarify error message.
From-SVN: r39685
This commit is contained in:
parent
55bd9f24ca
commit
7161c1a582
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue