With enabled unbound variables check (set -u), bash fails to initialize and access associative array:
during initialization
set -u
declare -a qwe=()
qwe[asd]=val # bash: asd: unbound variable
during access:
declare -a qwe=()
qwe[asd]=val
set -u
echo ${qwe[asd]} # bash: asd: unbound variable
Bash version: GNU bash, version 5.1.4(1)-release (x86_64-pc-linux-gnu)
Am I missing something or it is some kind of a bug?