When ECL lisp-to-c compiler sees the following code:
(defun note-position (posn) (declare ((integer 0) posn) (special *seen-positions-table*)) (incf (gethash posn *seen-positions-table* 0)))
it fails with message:
;;; Compiling (DEFUN NOTE-POSITION ...). ;;; Error: ;;; in file basic.lisp, position 4783 ;;; at (DEFUN NOTE-POSITION ...) ;;; * Syntax error in declaration ((INTEGER 0) POSN)
Other lisps, as well as ECL bytecode compiler
accept the declaration.
The code is from the cl-parser-combinators library.
I have opened a ticket in the library issue tracker:
ECL versions where this problem was observed include:
ecl-12.12.1, ecl-13.4.1-0e93edfc, ecl-13.4.1-94e04b54,