[PATCH] D13643: [Sema] Warn on ternary comparison

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 18 11:33:25 PDT 2016


rsmith added a comment.

Once this lands, we should also consider the corresponding case from a //fold-expression//:

  template<typename ...T> bool f(T ...t) { return (t < ...); } // warn if sizeof...(T) != 2 and we use built-in operator <.
  bool k = f(1.0, 2.0, 3.0);


http://reviews.llvm.org/D13643





More information about the cfe-commits mailing list