Skip to content

sema: fix string literal allowed in templates#6920

Merged
Keenuts merged 1 commit intomicrosoft:mainfrom
Keenuts:fix-6877
Sep 19, 2024
Merged

sema: fix string literal allowed in templates#6920
Keenuts merged 1 commit intomicrosoft:mainfrom
Keenuts:fix-6877

Conversation

@Keenuts
Copy link
Copy Markdown
Collaborator

@Keenuts Keenuts commented Sep 18, 2024

String literal are not supported in HLSL, except in the special printf case.
Most cases were handled, but not the templated function case.

Fixes #6877

String literal are not supported in HLSL, except in the special
printf case.
Most cases were handled, but not the templated function case.

Fixes microsoft#6877

Signed-off-by: Nathan Gauër <[email protected]>
@Keenuts Keenuts requested a review from a team as a code owner September 18, 2024 12:42
@Keenuts Keenuts requested review from damyanp and s-perron September 18, 2024 12:43
Copy link
Copy Markdown
Collaborator

@s-perron s-perron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Keenuts Keenuts merged commit 9f298d6 into microsoft:main Sep 19, 2024
@Keenuts Keenuts deleted the fix-6877 branch September 19, 2024 14:43
SjMxr233 pushed a commit to ShaderHelper/DirectXShaderCompiler that referenced this pull request Jul 24, 2025
String literal are not supported in HLSL, except in the special printf
case.
Most cases were handled, but not the templated function case.

Fixes microsoft#6877

Signed-off-by: Nathan Gauër <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[SPIR-V] DXC crash with buffer assignment + template function

3 participants