Closed hkaiser closed 1 year ago
FWIW, with this PR, I'm seeing this when compiling forall.chpl
:
chplx : for identifier already defined in current scope
chplx : i identifier already defined in current scope
chplx : i identifier already defined in current scope
chplx : i identifier already defined in current scope
chplx : i identifier already defined in current scope
chplx : coforall identifier already defined in current scope
after which the compiler segfaults here: https://github.com/ct-clmsn/chplx/blob/edcdb26facc3b1ae33ce06475d9d5aef2a515aec/backend/src/programtreebuildingvisitor.cpp#L870 as curStmts
is empty.
Huh, I ran some tests on my local system before doing the commit+merge and it looked like everything checked out. Will dig into this in the evening. Thanks for looking into it.
These issues have been resolved by other commits. Closing now.
@ct-clmsn this is an attempt to resolve issues in the backend introduced by recent changes to handling scopes. It does not fully resolve things as I wasn't sure how things are supposed to work. Please have a careful look.