[cfe-commits] r84968 - in /cfe/trunk: include/clang/Basic/DiagnosticParseKinds.td lib/Parse/ParseExpr.cpp lib/Sema/SemaExprCXX.cpp test/Parser/cxx-parse-member-pointer-op.cpp
Fariborz Jahanian
fjahanian at apple.com
Sat Oct 24 11:24:56 PDT 2009
On Oct 23, 2009, at 9:47 PM, Chris Lattner wrote:
>
> On Oct 23, 2009, at 2:01 PM, Fariborz Jahanian wrote:
>
>> Author: fjahanian
>> Date: Fri Oct 23 16:01:39 2009
>> New Revision: 84968
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=84968&view=rev
>> Log:
>> Diagnose misuse of '.*' and '->*' operators during parse
>> instead of crashing in code gen.
>
> Hi Fariborz,
>
> Would it be feasible to offer a fixit hint to convert .* into ->*
> (and visaversa) if the parse would work when the other operator was
> provided? This is similar to . <-> ->
In this particular patch, both use of .* and ->* before a type is
caught as error. What you point out is a separate but related issue and
I will look into it.
- Fariborz
More information about the cfe-commits
mailing list