On 11/20/19 4:40 PM, Paolo Carlini wrote:
Hi,

while working on improving the locations of cp_build_indirect_ref_1 & co, I noticed this nit which seems a separate issue.

In a nutshell, at variance with many other cases, in build_x_arrow we don't immediately check for error_mark_node the return value of decay_conversion. Then, for the testcase, after a sensible:

error: invalid use of member function ‘C* C::f()’ (did you forget the ‘()’ ?)

we also issue:

error: base operand of ‘->’ is not a pointer

which is certainly redundant and a bit misleading, is talking about the 'f' mentioned in the first message. The amended behavior is also consistent with EDG and CLANG.

Tested x86_64-linux, as usual.

Thanks, Paolo.

//////////////////////////

OK.


Reply via email to