bugMIT/GNU Scheme - Bugs: bug #63503, Literal syntax-rules identifiers...

 
 

bug #63503: Literal syntax-rules identifiers generated by macros are broken

Submitter:  Taylor R. Campbell <riastradh>
Submitted:  Sat 10 Dec 2022 10:36:17 PM UTC
   
 
Category:  runtime Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect behavior
Status:  Fixed Privacy:  Public
Assigned to:  cph Originator Name: 
Open/Closed:  Closed
Keywords: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 10 Dec 2022 10:36:17 PM UTC, original submission:  

(let ()
  (define-syntax foo
    (syntax-rules (keyword)
      ((foo keyword x) x)))
  (define-syntax bar
    (syntax-rules ()
      ((bar x)
       (foo keyword x))))
  (bar 123))
;Ill-formed special form: (#[syntactic-closure 44 foo] #[syntactic-closure 45 keyword] 123)

Expected result: 123

Taylor R. Campbell <riastradh>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cph (Updated the item)
  • -email is unavailable- added by riastradh (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-12-11 cph StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code