You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module A {
iter foo():int {}
iter foo(param tag):intwhere tag == iterKind.standalone {}
}
module B {
procmain() {
import A;
forall i in A.foo() {}
}
}
simple.chpl:9: In function 'main':
simple.chpl:11: error: A standalone or leader iterator is not found for the iterable expression in this forall loop
The problem is that the qualified import, import A, does not bring in enough information for the resolver to resolve A.foo to the parallel iterator. Changing import to use in the above program does work.
I am filing this bug because it is a bug, but I have confirmed that the new dyno resolver already handles this correctly, so I expect the way this bug will be handled is by having the dyno resolver takeover production (unless there is an easy fix in the current resolver)
Since @DanilaFe was working on resolving iterators in Dyno recently (albeit in a different context, IIRC), I'm curious whether Dyno inherits this behavior or maybe improves upon it?
The following program fails to resolve on main
The problem is that the qualified import,
import A
, does not bring in enough information for the resolver to resolveA.foo
to the parallel iterator. Changingimport
touse
in the above program does work.I am filing this bug because it is a bug, but I have confirmed that the new dyno resolver already handles this correctly, so I expect the way this bug will be handled is by having the dyno resolver takeover production (unless there is an easy fix in the current resolver)
Associated future:
test/functions/iterators/qualifiedParallelImport.chpl
The text was updated successfully, but these errors were encountered: