Opened 11 years ago

Closed 11 years ago

#288 closed defect (fixed)

Confusing error message for misplaced DECLARE

Reported by: hans Owned by: gz
Priority: major Milestone:
Component: Compiler Version: unspecific
Keywords: Cc:

Description

Compiling a file with this contents:

(prog1
    (declare (ignore foo)))

yields a confusing error message

Welcome to Clozure Common Lisp Version 1.2-r9226-RC1  (LinuxX8664)!
? (compile-file "foo.lisp")
;Compiler warnings for "/home/hans/profiler/foo.lisp" :
;   In an anonymous lambda form: DECLARE not expected in (DECLARE (IGNORE FOO))
> Error: No MAKE-LOAD-FORM method is defined for #<CCL::SIMPLE-PROGRAM-ERROR #x
00040CFAF3D>

The "DECLARE not expected" is clear, but the MAKE-LOAD-FORM thing is really confusing. It seems as if the compiler continues when it can't.

Change History (3)

comment:1 Changed 11 years ago by gz

  • Owner changed from gb to gz

comment:2 Changed 11 years ago by gz

  • Status changed from new to assigned

comment:3 Changed 11 years ago by gz

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in r9328, r9665, r9666.

Note: See TracTickets for help on using tickets.