New Issue: Loosely constrained param field results in internal error

18147, "bradcray", "Loosely constrained param field results in internal error", "2021-08-02T19:40:39Z"

[split off from #12612 where @BryantLam reported it as a side issue of low priority]

Summary of Problem

The following program:

record R {
  param size: integral;
}
proc main() {
  R(64);
}

results in the internal error:

testit.chpl:5: internal error: AST-TYP-1890 chpl version 1.25.0 pre-release (c1b92887ae)

The developer version of the error is:

testit.chpl:5: internal error: does not have a default value [AST/type.cpp:1890]

It should either work or result in a clear user-facing error.

Configuration Information

  • Output of chpl --version: 1.25.0 pre-release (c1b92887ae)