19197, "jhh67", "some reserved words can't be used as a file name", "2022-02-07T13:46:00Z"
At least some reserved words cannot be used as a file name and cause a confusing error message. I got the following error trying to compile
error: 'borrowed' has multiple definitions, redefined at: borrowed.chpl:1
However, Brad was able to compile
if.chpl so not all reserved words cause the error.
Associated Future Test(s):
- Output of
chpl version 1.26.0 pre-release (27f3d59788) Copyright 2020-2022 Hewlett Packard Enterprise Development LP Copyright 2004-2019 Cray Inc. (See LICENSE file for more details)
- Output of
CHPL_TARGET_PLATFORM: darwin CHPL_TARGET_COMPILER: clang 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: none * CHPL_HWLOC: bundled CHPL_RE2: bundled CHPL_LLVM: none * CHPL_AUX_FILESYS: none
- Back-end compiler and version, e.g.
Apple clang version 12.0.0 (clang-1126.96.36.199) Target: x86_64-apple-darwin19.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
- (For Cray systems only) Output of