Skip to content

BUG: variable self reference causes stack overflow #23

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

Open
daz10000 opened this issue Aug 9, 2018 · 1 comment
Open

BUG: variable self reference causes stack overflow #23

daz10000 opened this issue Aug 9, 2018 · 1 comment

Comments

@daz10000
Copy link
Contributor

daz10000 commented Aug 9, 2018

This (admittedly buggy) GSL causes a stack overflow on our production compiler. Please verify of course but pretty sure it's a bug in GslCore


let x = oGAL1

let y = &y ; &x

@chrismacklin
Copy link
Contributor

There is a primitive check to handle the simple case

let x = &x

here:

let (|SelfReferentialVariable|_|) node =

Expanding this active pattern could be a fine place to start to handle this case. It is tricky, though.

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