================
@@ -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}}
+};
----------------
cor3ntin wrote:

Did you test `this S = S {}`? or should the title say "Fix a crash when an 
invalid default argument is passed to an explicit object parameter" ?

https://github.com/llvm/llvm-project/pull/177534
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to