[cfe-commits] r83133 - in /cfe/trunk: lib/Sema/SemaExprCXX.cpp test/SemaCXX/overloaded-operator.cpp
Douglas Gregor
dgregor at apple.com
Wed Sep 30 08:45:37 PDT 2009
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*.
- Doug
More information about the cfe-commits
mailing list