Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal compiler error: access violation. Attempted to read from address 0x0000000000000048 when multiple breaks in a loop #4422

Closed
amaiorano opened this issue Apr 28, 2022 · 0 comments · Fixed by #4446

Comments

@amaiorano
Copy link
Collaborator

Given this HLSL:

void main() {
  while (true) {
    if (false) {
    } else {
      break;
    }
    break;
  }
}

Compiling with latest dxc snapshot:

"C:\dxc\dxc-artifacts (5)\bin\dxc.exe" /T ps_6_5 LoopBreak_FromLoopBodyDirect.hlsl
Internal compiler error: access violation. Attempted to read from address 0x0000000000000048

If we remove either one of the two breaks, it compiles. If we change the if (false) to if (true) it also compiles.

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

Successfully merging a pull request may close this issue.

1 participant