Skip to content

Conversation

tex3d
Copy link
Contributor

@tex3d tex3d commented Jun 6, 2025

This change adds two additional calls to Sema::RequireCompleteType, one when evaluating unary sizeof, which fixes a reported issue with templates. The second is in the DXR diagnostics where complete type should be required but not diagnosed because ordering in the compiler is a bit wonky when diagnosing DXR entry points.

Fixes #7510


(cherry picked from commit 77dcbb6)

This change adds two additional calls to Sema::RequireCompleteType, one
when evaluating unary `sizeof`, which fixes a reported issue with
templates. The second is in the DXR diagnostics where complete type
should be required but not diagnosed because ordering in the compiler is
a bit wonky when diagnosing DXR entry points.

Fixes microsoft#7510

---------

Co-authored-by: Tex Riddell <[email protected]>
(cherry picked from commit 77dcbb6)
@tex3d tex3d merged commit 4a98867 into microsoft:release-1.8.2505 Jun 11, 2025
13 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in HLSL Roadmap Jun 11, 2025
@tex3d tex3d deleted the cp-sizeof-requires-type branch June 11, 2025 19:03
@MarijnS95
Copy link
Contributor

Thanks for the backport! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants