mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-07 15:30:18 +08:00
re PR c++/23194 (Unhelpful diagnostic for incorrect pointer-to-member function syntax)
PR c++/23194 * typeck.c (cp_build_function_call): Show example syntax in diagnostic. From-SVN: r137086
This commit is contained in:
parent
d3cf4d7224
commit
7b98a7257e
@ -1,3 +1,9 @@
|
||||
2008-06-24 Jonathan Wakely <jwakely.gcc@gmail.com>
|
||||
|
||||
PR c++/23194
|
||||
* typeck.c (cp_build_function_call): Show example syntax in
|
||||
diagnostic.
|
||||
|
||||
2008-06-21 Jonathan Wakely <jwakely.gcc@gmail.com>
|
||||
|
||||
* typeck.c (composite_pointer_type_r, cxx_sizeof_expr,
|
||||
|
@ -2850,8 +2850,8 @@ cp_build_function_call (tree function, tree params, tsubst_flags_t complain)
|
||||
{
|
||||
if (complain & tf_error)
|
||||
error ("must use %<.*%> or %<->*%> to call pointer-to-member "
|
||||
"function in %<%E (...)%>",
|
||||
original);
|
||||
"function in %<%E (...)%>, e.g. %<(... ->* %E) (...)%>",
|
||||
original, original);
|
||||
return error_mark_node;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user