Link: Fix "var x = nil;" by vasslitvinov · Pull Request #19676 · chapel-lang/chapel · GitHub
Merge pull request #19676 from vasslitvinov/fix--var_x_=_nil;
Fix "var x = nil;"
This changes enables the compiler to compile code like this:
var x1 = nil;
var x2 = c_nil;
which used to cause assertion failures during --no-local compilations.
Note that #19672 proposes to disallow this code.
That will likely make this fix unnecessary.
Enable nil-variable-elimination upon --local.
Previously it was done only during --no-local compilations.
Resolve, unintentionally, a gasnet --verify failure in
Modified Files: A test/classes/vass/var_x_=_nil.chpl