[cfe-dev] [patch] Fix source range of overloaded postfix operators and of overloaded operator->
John McCall
rjmccall at apple.com
Sat Apr 2 01:38:58 PDT 2011
On Apr 1, 2011, at 11:54 AM, Marcin Kowalczyk wrote:
> Without this 'it->first' with 'it' of a class type is claimed to begin
> at '->' instead of at 'it', because operator-> gets lumped with prefix
> operators.
Nice catch.
> I believe the arrow should not be included in the end of the range
> either, so the whole LHS of such MemberExpr is just 'it', dressed in
> an overloaded operator-> call which changes the type.
I think that's a reasonable interpretation.
> I spotted a bug in postfix operators while fixing operator->, I assume
> it's correct (this one is not tested).
Yeah, looks good.
I take it you don't have commit privileges?
John.
More information about the cfe-dev
mailing list