[cfe-commits] r83133 - in /cfe/trunk: lib/Sema/SemaExprCXX.cpp test/SemaCXX/overloaded-operator.cpp

Fariborz Jahanian fjahanian at apple.com
Wed Sep 30 10:47:54 PDT 2009


On Sep 30, 2009, at 8:45 AM, Douglas Gregor wrote:

>
> On Sep 29, 2009, at 6:01 PM, John McCall wrote:
>> +      BaseType = BaseExpr->getType();
>> +      CanQualType CBaseType = Context.getCanonicalType(BaseType);
>> +      if (std::find(CTypes.begin(), CTypes.end(), CBaseType) !=
>> CTypes.end()) {
>> +        // TODO: note the chain of conversions
>>        Diag(OpLoc, diag::err_operator_arrow_circular);
>>        return ExprError();
>>      }
>
> Printing the chain of conversions as "type1 -> type2 -> type3 ->
> type1" should be relatively easy. That would make this diagnostic
> *perfect*.

I do the easy stuff :).  Done in: http://llvm.org/viewvc/llvm-project?view=rev&revision=83153

- Fariborz


>
>
>   - Doug
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list