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

Fix handling of break and continue statements for rangebased loops in reverse mode #1019

Closed
ovdiiuv opened this issue Aug 1, 2024 · 1 comment

Comments

@ovdiiuv
Copy link
Collaborator

ovdiiuv commented Aug 1, 2024

Computing gradient for

double fn(double x){
  double a[] = {x};
  for(auto i: a){
    if(0)
      break;
  }
  return 0;
}

results in an error.

@ovdiiuv ovdiiuv changed the title Fix handling of break and continue statements in reverse mode Fix handling of break and continue statements for range base loops in reverse mode Aug 1, 2024
@ovdiiuv ovdiiuv changed the title Fix handling of break and continue statements for range base loops in reverse mode Fix handling of break and continue statements for rangebased loops in reverse mode Aug 1, 2024
ovdiiuv pushed a commit to ovdiiuv/clad that referenced this issue Aug 10, 2024
vgvassilev pushed a commit that referenced this issue Aug 10, 2024
@vgvassilev
Copy link
Owner

Fixed by #1034

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

No branches or pull requests

2 participants