zsh-workers
 help / color / mirror / code / Atom feed
* params.c:2985: BUG: assigning to undeclared associative array
@ 2016-06-04 16:57 Daniel Shahaf
  2016-06-04 18:09 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Shahaf @ 2016-06-04 16:57 UTC (permalink / raw)
  To: zsh-workers

I managed to provoke a "BUG" diagnostic:

    $ zsh -f
    % : ${(AA)foo::=bar}
     params.c:2985: BUG: assigning to undeclared associative array
    zsh: bad set of key/value pairs for associative array

That diagnostic was added in 37208, and in 37802 it was triggered but
that instance was deemed a false positive.  Is this instance a genuine
bug or a false positive?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: params.c:2985: BUG: assigning to undeclared associative array
  2016-06-04 16:57 params.c:2985: BUG: assigning to undeclared associative array Daniel Shahaf
@ 2016-06-04 18:09 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2016-06-04 18:09 UTC (permalink / raw)
  To: zsh-workers

On Jun 4,  4:57pm, Daniel Shahaf wrote:
}
}     $ zsh -f
}     % : ${(AA)foo::=bar}
}      params.c:2985: BUG: assigning to undeclared associative array
}     zsh: bad set of key/value pairs for associative array

This is a false positive; use of (AA) should be considered to have
"declared" the parameter.

I may look into this later if no one beats me to it.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-04 18:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-04 16:57 params.c:2985: BUG: assigning to undeclared associative array Daniel Shahaf
2016-06-04 18:09 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).