chapel icon indicating copy to clipboard operation
chapel copied to clipboard

[Bug]: "iter init" produces compiler bug RES-RES-ION-2058

Open astatide opened this issue 10 months ago • 0 comments

Summary of Problem

Description:

I accidentally wrote iter init instead of proc init, as I should. Rather than producing a compiler error about why using an initializer as an iterator is... uhh, nonsense, it simply gives the compiler error listed above (RES-RES-ION-2058).

Is this a blocking issue with no known work-arounds?

Not a blocking issue.

Steps to Reproduce

Source Code:

class IteratorInit {
  iter init() {}
}

Compile command:

Execution command:

Associated Future Test(s):

Configuration Information

  • Output of chpl --version:
  • Output of $CHPL_HOME/util/printchplenv --anonymize:
  • Back-end compiler and version, e.g. gcc --version or clang --version:
  • (For Cray systems only) Output of module list:

astatide avatar Apr 19 '24 14:04 astatide