External Issue: Internal error: list of lists passed to proc

17319, "stonea", "Internal error: list of lists passed to proc", "2021-03-02T23:44:03Z"

Summary of Problem

I'm getting the following "internal error" message when compiling a program that calls into a procedure taking a list of lists of ints as an argument.

bug.chpl:3: internal error: UTI-MIS-0889 chpl version 1.24.0 pre-release (2b5162ef27)
Note: This source location is a guess.

Internal errors indicate a bug in the Chapel compiler ("It's us, not you"),
and we're sorry for the hassle.  We would appreciate your reporting this bug --
please see https://chapel-lang.org/bugs.html for instructions.  In the meantime,
the filename + line number above may be useful in working around the issue.

Steps to Reproduce

Source Code:

use List;

proc foo(nums : list(list(int))) : int {
    return 0;
}

proc main() {
    const input = new list(new list(int));
    const actual = foo(input);
}

Compile command:
chpl bug.chpl

Configuration Information

I cloned the Chapel repos a couple weeks ago and compiled it locally on my machine. I'm running it on Ubuntu on top of Windows Subsystem for Linux. Output from specific commands of interest are:

> chpl --version
chpl version 1.24.0 pre-release (2b5162ef27)
Copyright 2020-2021 Hewlett Packard Enterprise Development LP
Copyright 2004-2019 Cray Inc.
(See LICENSE file for more details)

> $CHPL_HOME/util/printchplenv --anonymize
CHPL_TARGET_PLATFORM: linux64
CHPL_TARGET_COMPILER: gnu
CHPL_TARGET_ARCH: x86_64
CHPL_TARGET_CPU: native
CHPL_LOCALE_MODEL: flat
CHPL_COMM: none
CHPL_TASKS: qthreads
CHPL_LAUNCHER: none
CHPL_TIMERS: generic
CHPL_UNWIND: none
CHPL_MEM: jemalloc
CHPL_ATOMICS: cstdlib
CHPL_GMP: bundled
CHPL_HWLOC: bundled
CHPL_REGEXP: re2
CHPL_LLVM: none
CHPL_AUX_FILESYS: none

> gcc --version
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.