================
@@ -13,6 +13,7 @@ enum class E { e };
 
 template<typename T> int f(T t) { return ~t; } // expected-error {{invalid 
argument type}}
 template<typename T, typename U> int f(T t, U u) { return t % u; } // 
expected-error {{invalid operands to}}
+                                                                   // 
expected-note@-1 {{no implicit conversion for scoped enum}}
----------------
tinnamchoi wrote:

The test fails without it
```
error: 'expected-note' diagnostics seen but not expected: 
  File 
<monorepo-root>/clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/p3.cpp
 Line 15: no implicit conversion for scoped enum; consider casting to 
underlying type
```

https://github.com/llvm/llvm-project/pull/152698
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to