------- Comment #4 from deba at inf dot elte dot hu  2008-07-25 14:43 -------
(In reply to comment #3)
> What Andrew means by "example" is a short, self-contained, compilable testcase
> that shows the undesired behaviour.
> 

struct A {};
A operator<(A, A) { return A(); }

int main() {
        A() < A() < A(); // should not emit warning
        1 < 2 < 3; // should emit warning
        return 0;
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36921

Reply via email to