[clang] [HLSL] Disable implicit constructors for user-defined structs/classes (PR #194989)

Joshua Batista via cfe-commits cfe-commits at lists.llvm.org
Fri May 1 13:09:58 PDT 2026


================
@@ -6,10 +6,10 @@ struct Pair {
   int getFirst() {
     Pair Another = {5, 10};
     this = Another;
-      return this.First;
+    return this.First;
   }
   int getSecond() {
-    this = Pair();
+    this = {0, 123};
----------------
bob80905 wrote:

As far as I understand, default constructors are still around, but move / copy constructors are being removed. With this understanding, shouldn't we leave this as is and make another function to test what you're doing here?

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


More information about the cfe-commits mailing list