[clang] [HLSL] Remove support for constructors for user defined structs (PR #190089)

Sarah Spall via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 6 12:19:05 PDT 2026


================
@@ -68,6 +68,7 @@ struct Fish {
 
   // expected-note at +1 {{'->' applied to return value of the operator->() declared here}}
   Fins operator ->() {
+    // expected-error at +1 {{no matching constructor for initialization of 'Fins'}}
----------------
spall wrote:

Yeah that could probably be something better.  Unsure what we want the error to be though. Something like "HLSL doesn't support constructors"?

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


More information about the cfe-commits mailing list