Open daviditen opened 4 years ago
From https://github.com/chapel-lang/chapel/issues/15929#issuecomment-650130825 - Here it looks like the problem is that the compiler is trying to resolve PRIM_ADDR_OF with a chpl__hashtable variable that has generic type
I simplified a test case down to
use ChapelHashtable;
record mmap {
type keyType;
type valType;
pragma "no doc"
var table = new chpl__hashtable(keyType, valType);
proc method() {
for slot in table.allSlots() { }
}
}
class C {
var i: int;
}
var m: mmap(int, borrowed C);
m.method();
Presently,
map.table
is default initialized, but it is running into issue #15929. A suggested workaround was to instead declare it as:However, after changing it to the above, some cases of maps of classes fail with internal compiler errors. Failures include building
mason
, andtest/library/standard/Map/testBorrowedMap.chpl
. I attempted to tease this error apart frommap
, but was unsuccessful.The errors are along the lines of: