New Issue: Confusing error message about default initializing a variable with generic type

19113, "bradcray", "Confusing error message about default initializing a variable with generic type", "2022-01-26T01:03:14Z"

Summary of Problem

On a line of Chapel in which I did not believe I was default initializing anything, the compiler gave me an error message about default initializing a variable with generic type. I'm not certain whether the problem is mine or the compiler's, but if mine, I think the error message needs to be clarified for the end-user.

Capturing the error message here in case others hit cases like this:

day18-bug.chpl:23: In function 'lineToTree':
day18-bug.chpl:28: error: cannot default-initialize a variable with generic type
day18-bug.chpl:28: note: '<temporary>' has generic type 'Node'
day18-bug.chpl:28: note: cannot find initialization point to split-init this variable

Steps to Reproduce

Associated Future Test(s):
test/studies/adventOfCode/2021/bradc/futures/day18-bug.chpl #19028

Configuration Information

  • Output of chpl --version: chpl version 1.26.0 pre-release (56bd177336)