================
@@ -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:

Yes, I did but I haven't added that and just kept the original testcase 
provided in #176639. Just to be clear, this S = S {}` also produces the same 
crash. If required, I can add that as well.

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