[Chapel Merge] Fix default-initialization for param strings

Branch: refs/heads/main
Revision: 34c18e7
Author: mppf
Link: Fix default-initialization for param strings by mppf · Pull Request #18598 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #18598 from mppf/issue-18595

Fix default-initialization for param strings

Fixes a bug with default-initialization of param strings.

Resolves #18595

  • Adjusts the compiler to fix the bug
  • Adjusts spec wording to clarify that param values can be default initialized
  • Add the test from #18595 as well as a simpler reproducer

Reviewed by @daviditen - thanks!

  • [x] full local testing

    Modified Files:
    A test/param/ferguson/default-init-param-size.chpl
    A test/param/ferguson/default-init-param-size.good
    A test/param/ferguson/issue-18595.chpl
    A test/param/ferguson/issue-18595.good
    M compiler/resolution/functionResolution.cpp
    M doc/rst/language/spec/variables.rst

    Compare: Comparing ff7e3ace145f...34c18e721d27 · chapel-lang/chapel · GitHub