DATA LIST: Fix crash inside LOOP.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 18 Apr 2023 15:45:48 +0000 (08:45 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 18 Apr 2023 15:45:59 +0000 (08:45 -0700)
commit469786accf638c29c86c82c579ae163be71f5d20
treeafd1585ce1be8d47e4b31530d4cdb7744fa986ce
parent9dfbdc3c1782af1157cd0460403398d4c8ba2dfc
DATA LIST: Fix crash inside LOOP.

DATA LIST should be allowed inside LOOP if the LOOP is inside INPUT
PROGRAM, and disallowed otherwise.  The latter behavior was not correct
before this commit.

Reported-by: Youngseok Choi <youngseok.main@gmail.com>
Reported-at: https://lists.gnu.org/archive/html/bug-gnu-pspp/2023-04/msg00002.html.
src/language/command.c
src/language/command.def
tests/language/commands/data-list.at