[clang] [clang] Fix assertion failure with deleted overloaded unary operators (PR #78316)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 17 02:31:20 PST 2024


================
@@ -598,3 +598,30 @@ namespace B {
 }
 void g(B::X x) { A::f(x); }
 }
+
+namespace GH78314 {
+
+class a {
+public:
+  void operator--() = delete; // expected-note {{candidate function has been explicitly deleted}} \
+                              // expected-note {{candidate function not viable: requires 0 arguments, but 1 was provided}}
+  void operator--(int) = delete; // expected-note {{candidate function has been explicitly deleted}} \
+                                 // expected-note {{candidate function not viable: requires 1 argument, but 0 were provided}}
+};
----------------
Fznamznon wrote:

Sure, done.

https://github.com/llvm/llvm-project/pull/78316


More information about the cfe-commits mailing list