Ignore:
Timestamp:
May 16, 2009, 11:13:38 AM (11 years ago)
Author:
gz
Message:

Add an unknown-type-in-declaration warning that doesn't care if the type is defined later, use it for type declarations. Other tweaks: make the generic bad declaration message even more vague. Try not to whine more than once for the same declaration. Remember whether the user said ignorable or ignore-if-unused, for error messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/compiler/nx1.lisp

    r12045 r12071  
    2929  ;; in type declarations, but aren't legal args to TYPEP;
    3030  ;; treat them as the simple FUNCTION type.
    31   (let* ((ctype (handler-case (values-specifier-type typespec)
     31  (let* ((ctype (handler-case (values-specifier-type typespec env)
    3232                  (parse-unknown-type (c)
    33                     (when *compiler-warn-on-undefined-type-references*
    34                       (nx1-whine :undefined-type (parse-unknown-type-specifier c))
    35                       nil))
     33                    (nx1-whine :unknown-type-in-declaration (parse-unknown-type-specifier c))
     34                    nil)
    3635                  (program-error (c)
    3736                    (nx1-whine :invalid-type typespec c)
Note: See TracChangeset for help on using the changeset viewer.