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

Tex Riddell via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 6 12:07:15 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'}}
----------------
tex3d wrote:

Is this the error message we want if we don't support constructors at all in HLSL?

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


More information about the cfe-commits mailing list