You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forward declaring a function inside another function causes a compiler crash.
Functional impact
Can't have forward declarations inside functions. Breaks compatibility with the DXIL backend and backward compatibility with FXC which compile the following example fine.
Title
Forward declaring a function inside another function causes a compiler crash.
Functional impact
Can't have forward declarations inside functions. Breaks compatibility with the DXIL backend and backward compatibility with FXC which compile the following example fine.
Minimal repro steps
1.1. Compile forward_decl_issue.txt (seen below) with
dxc.exe -T ps_6_0 -E PSMain -spirv forward_decl_issue.txt
:Expected result
Compilation succeeds.
Actual result
Compiler crashes on an assertion with the following stack: crash_stack.txt
Further technical details
DXC built from commit 530958e
The text was updated successfully, but these errors were encountered: