bugKawa - Bugs: bug #40123, Nested with-compile-options...

 
 

bug #40123: Nested with-compile-options problem

Submitted by:  Matthieu Vachon <maoueh>
Submitted on:  Fri 27 Sep 2013 01:59:28 AM UTC  
 
Category: Scheme languageSeverity: 3 - Normal
Item Group: Bad diagnosticStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 27 Sep 2013 07:16:16 AM UTC, comment #1:

These was a logic bug in the save/restore logic for the options.
Pretty blatant one once tracked down ...
I fixed it and checked in your testcase. Thanks.

Per Bothner <bothner>
Project Administrator
Fri 27 Sep 2013 01:59:28 AM UTC, original submission:

Consider the following snippet:

Both `(if ...)` statement generate an unreachable warning.

The first one is not reported as expected because the nested `with-compile-options` catch it. However, the second one still generates a warning even tough it is still wrapped in the first `with-compile-options`. It's like the nested one affect the options set by the first one when the block is exited.

Just like that, the snippet is not very common. However, we faced this problem because one of our big macro creates an unreachable warning that we need to fix. As a temp fix, we wrap the piece of code in a `with-compile-options`. It works great, except when nest the macro in which case, the warning is still issued.

I'm going to add a test case after submission.

Regards,
Matt

Matthieu Vachon <maoueh>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files

 

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 maoueh (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 27 Sep 2013 07:16:16 AM UTCbothnerItem GroupNone=>Bad diagnostic
      StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 27 Sep 2013 02:01:29 AM UTCmaouehAttached File-=>Added feature-nested-with-compile-options-testcase.patch, #29239

    Back to the top


    Powered by Savane 3.1-cleanup1