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

Cannot inline a function whose implementation calls itself #52

Open
ahelsing opened this issue Sep 13, 2019 · 1 comment
Open

Cannot inline a function whose implementation calls itself #52

ahelsing opened this issue Sep 13, 2019 · 1 comment

Comments

@ahelsing
Copy link
Contributor

If a qgl2decl function calls a helper that in turn calls the first function, the inliner gets stuck in an endless loop.
See for example cliffords_seq which calls entangling_seq which in turn calls cliffords_seq.

@ahelsing
Copy link
Contributor Author

If possible, break up that loop, and then things work better I think. But I'd like the inliner to warn if you hit this situation.

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

1 participant