chapel-lang / chapel

a Productive Parallel Programming Language
https://chapel-lang.org
Other
1.8k stars 423 forks source link

Standalone Arkouda `ContrivedConstructor` caused compiler to throw unreasonable promotion/parameness error #25185

Open alvaradoo opened 6 months ago

alvaradoo commented 6 months ago

Summary of Problem

Description: When hacking together some code from the Arkouda coargsort module to work in a standalone Chapel file, an incorrect call to A.type instead of A.eltType caused the Arkouda ContrivedConstructor to have weird typing that made the compiler throw a promotion/paramness error that was not expected.

Is this issue currently blocking your progress? Nope.

Steps to Reproduce

Source Code: Link to commit and branch.

Compile command: chpl graph.chpl

Execution command: ./graph -nl 2

Associated Future Test(s):

Configuration Information

lydia-duncan commented 6 months ago

I've tied this as compiler due to the interaction with promotion handling and libraries/modules due to it being the Sort module that triggered the issue in this particular case