19932, "rmzs0711", "Random compiler errors, when trying to call submodule like a procedure", "2022-06-03T12:05:54Z"
Summary of Problem
Random compiler's output when trying to compile the wrong code that calls inner module like a procedure. I have met:
- illegal type index expression '_unknown()'
- unresolved call '(DQ�V()'
- internal error: UTI-MIS-0935 chpl version 1.26.0
- internal error: AST-EXP-0292 chpl version 1.26.0
Expected compiler's output: " hello2-module.chpl:9: syntax error: near '(' "
Steps to Reproduce
hello2-module.chpl:
module A {
module B {
}
}
module Main {
proc main() {
use A;
A.B();
}
}
Compile command:
chpl hello2-module.chpl
Execution command:
./hello2-module
Configuration Information
-
Output of
chpl --version
:
chpl version 1.26.0
Copyright 2020-2022 Hewlett Packard Enterprise Development LP
Copyright 2004-2019 Cray Inc.
(See LICENSE file for more details) -
Output of
$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: fifo *
CHPL_LAUNCHER: none
CHPL_TIMERS: generic
CHPL_UNWIND: none
CHPL_MEM: cstdlib *
CHPL_ATOMICS: cstdlib
CHPL_GMP: none *
CHPL_HWLOC: none
CHPL_RE2: none *
CHPL_LLVM: none *
CHPL_AUX_FILESYS: none
- Back-end compiler and version, e.g.
gcc --version
orclang --version
:
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.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.
clang version 10.0.0-4ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin