bugKawa - Bugs: bug #40729, NPE in inline-compiler for...

 
 

bug #40729: NPE in inline-compiler for AppendValues

Submitted by:  John Tobey <jtobey>
Submitted on:  Thu 28 Nov 2013 01:45:41 AM UTC  
 
Category: Code generationSeverity: 3 - Normal
Item Group: Compile-time exceptionStatus: Fixed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 05 Dec 2013 04:23:34 AM UTC, comment #2:

Yes, I am heavily into macros these days. :) Thank you!

Now my code no longer reuses names this way (I think) but I have trouble with (... ...) - the subject of another bug report.

John Tobey <jtobey>
Sun 01 Dec 2013 01:27:24 AM UTC, comment #1:

This one was pretty obscure and hard to track down. It turned out to be an issue in variable renaming (aliasing) when expanding a macro template. Specifically, when nested definitions with the same name (f1) where f1 is a macro parameter. The reference to f1
in the body of f3 got resolved to the wrong definition. (Of course nested definitions with the same name is pretty questionable in human-written code, though I guess it could be reasonable in macro-generated code.)

Thanks for the test-case - It checked it in along with the fix,

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Thu 28 Nov 2013 01:45:41 AM UTC, original submission:

I think this could be smaller, but the going is slow.

bug.scm

John Tobey <jtobey>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bothner (Posted a comment)
  • -unavailable- added by jtobey (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 01 Dec 2013 01:27:24 AM UTCbothnerStatusNone=>Fixed
      Assigned toNone=>bothner
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1