[cfe-commits] r83124 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaExprCXX.cpp test/SemaCXX/overloaded-operator.cpp
Sebastian Redl
sebastian.redl at getdesigned.at
Wed Sep 30 02:44:13 PDT 2009
Fariborz Jahanian wrote:
> Author: fjahanian
> Date: Tue Sep 29 19:19:41 2009
> New Revision: 83124
>
> URL: http://llvm.org/viewvc/llvm-project?rev=83124&view=rev
> Log:
> self-referecing operator '->' member function was causing
> infinit recursion. This patch fixes it. [13.3.1.2]-p2
>
What about indirect cycles?
struct B;
struct A {
B operator ->();
};
struct B {
A operator ->() { return A(); }
};
B A::operator ->() { return B(); }
Sebastian
More information about the cfe-commits
mailing list