================
@@ -1400,3 +1400,18 @@ a void Bar(this int) { // expected-note {{candidate
function}}
}
}
+
+namespace GH176639 {
+
+struct S {
+ void operator()(this S =) // expected-error {{the explicit object parameter
cannot have a default argument}}
+ // expected-error@-1 {{expected ';' at end of declaration list}}
+ // expected-error@-2 {{expected expression}}
+};
----------------
hax0kartik wrote:
You need to call the () operator somewhere to make it crash.
https://godbolt.org/z/764ao4E1x
https://github.com/llvm/llvm-project/pull/177534
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits