19156, "jhh67", "can't create a set of sets", "2022-02-02T13:40:13Z"
Summary of Problem
I tried to create a set of sets of strings and got the following error. The type of the elements in the inner sets doesn't appear to matter.
$CHPL_HOME/modules/standard/Set.chpl:277: In method '_addElem':
$CHPL_HOME/modules/standard/Set.chpl:290: error: unresolved call '_ddata(chpl_TableEntry(string,nothing)).hash()'
note: this candidate did not match: owned.hash()
$CHPL_HOME/modules/internal/ChapelHashtable.chpl:220: note: because method call receiver with type '_ddata(chpl_TableEntry(string,nothing))'
note: is passed to formal 'this: owned'
$CHPL_HOME/modules/standard/Set.chpl:290: note: other candidates are:
note: shared.hash()
$CHPL_HOME/modules/internal/ChapelHashing.chpl:107: note: (borrowed object?).hash()
note: and 55 other candidates, use --print-all-candidates to see them
$CHPL_HOME/modules/standard/Set.chpl:251: called as (set(set(string,false),false))._addElem(elem: set(string,false)) from method 'init='
foo.chpl:1: called as (set(set(string,false),false)).init=(other: set(set(string,false),false))
note: generic instantiations are underlined in the above callstack
Steps to Reproduce
Source Code:
use Set;
var foo: set(set(string));
Compile command:
chpl --no-devel foo.chpl
Execution command:
NA
Associated Future Test(s):
Configuration Information
Output of chpl --version:
chpl version 1.26.0 pre-release (27f3d59788)
Copyright 2020-2022 Hewlett Packard Enterprise Development LP
Copyright 2004-2019 Cray Inc.
(See LICENSE file for more details)
Output of $CHPL_HOME/util/printchplenv --anonymize: