External Issue: const in task intent applied to arrays breaks the compiler

18851, "twesterhout", "const in task intent applied to arrays breaks the compiler", "2021-12-13T13:47:23Z"

Summary of Problem

Using const in task intent with an array results in internal error: OPT-REM-ING-0380 chpl version 1.25.0

Steps to Reproduce

Source Code:

proc main()
{
  var xs : [0 ..# 3] int = [1, 2, 3];
  coforall loc in Locales with (const in xs) do on loc {
    writeln(xs);
  }
}

Compile command:

chpl -o error error.chpl

Configuration Information

  • Output of chpl --version: 1.25.0